Datatype · Structs
RaycastResult
struct
Result returned by physics.raycast. Contains information about what the ray hit.
Fields
| Name | Type | Description |
|---|---|---|
| distance | number | The distance from the ray origin to the hit point. |
| hit_successful | boolean | Whether the ray hit anything. |
| instance | BasePart | nil | The BasePart that was hit, or |
| position | Vector3 | The world position of the hit point. |