RayCastParam
Constants in the RayCastParam enum.
RC_DATA_FLAGS // Flag used with llCastRay to configure returned data.RC_DETECT_PHANTOM // Flag used with llCastRay.RC_MAX_HITS // Flag used with llCastRay to set the maximum number of hits to return (up to 256).RC_REJECT_TYPES // Flag used with llCastRay to define a mask for ignoring specific types of objects and avatars.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
RC_DATA_FLAGS | integer | 2 | Flag used with llCastRay to configure returned data. |
RC_DETECT_PHANTOM | integer | 1 | Flag used with llCastRay. If set to TRUE (or non-zero), detects both phantom and volume-detect objects (they cannot be filtered individually). This overrides the RC_REJECT_NONPHYSICAL and RC_REJECT_PHYSICAL settings in RC_REJECT_TYPES. |
RC_MAX_HITS | integer | 3 | Flag used with llCastRay to set the maximum number of hits to return (up to 256). To avoid performance issues, keep this value small. |
RC_REJECT_TYPES | integer | 0 | Flag used with llCastRay to define a mask for ignoring specific types of objects and avatars. |
Used by
llCastRayfunctionCasts a ray into the physics world from start to end and reports collision data for intersections with objects based on options. Returns a list of strided values [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, ..., status_code]. A negative status_code indicates an error; otherwise, it represents the number of hits.