Skip to main content

RaycastHit

info
  • This class is only available on LocalAvatarScripts and LocalScripts

The structure used to get information back from a raycast.

Instance Properties

Property NameProperty TypeDescription
colliderColliderThe collider that the RayCast hit (Read only)
textureCoordfloat2The UV texture coordinate at the collision location (Read only)
textureCoord2float2The secondary UV texture coordinate at the impact point (Read only)
itemReadonlyItemThe item that was hit (Read only)
lightmapCoordfloat2The UV lightmap coordinate at the impact point (Read only)
pointfloat3The impact point in world space where the ray hit the collider
normalfloat3The normal of the surface the ray hit
barycentricCoordinatefloat3The barycentric coordinate of the triangle we hit
distancefloatThe distance from the ray's origin to the impact point