RaycastHit
info
- This class is only available on LocalAvatarScripts and LocalScripts
The structure used to get information back from a raycast.
Instance Properties
| Property Name | Property Type | Description |
|---|---|---|
| collider | Collider | The collider that the RayCast hit (Read only) |
| textureCoord | float2 | The UV texture coordinate at the collision location (Read only) |
| textureCoord2 | float2 | The secondary UV texture coordinate at the impact point (Read only) |
| item | ReadonlyItem | The item that was hit (Read only) |
| lightmapCoord | float2 | The UV lightmap coordinate at the impact point (Read only) |
| point | float3 | The impact point in world space where the ray hit the collider |
| normal | float3 | The normal of the surface the ray hit |
| barycentricCoordinate | float3 | The barycentric coordinate of the triangle we hit |
| distance | float | The distance from the ray's origin to the impact point |