Skip to content

API > RaycastHit


RaycastHit⚓︎

Structure used to get information back from a raycast. Unity RaycastHit

Members⚓︎

Properties⚓︎

Name Description
RaycastHit.barycentricCoordinateProperty
RaycastHit.colliderProperty The Collider that was hit.
RaycastHit.distanceProperty The distance from the ray's origin to the impact point.
RaycastHit.lightmapCoordProperty The uv lightmap coordinate at the impact point.
RaycastHit.normalProperty The normal of the surface the ray hit.
RaycastHit.pointProperty The impact point in world space where the ray hit the collider.
RaycastHit.textureCoordProperty The uv texture coordinate at the collision location.
RaycastHit.textureCoord2Property The secondary uv texture coordinate at the impact point.
RaycastHit.transformProperty The Transform of the rigidbody or collider that was hit.
RaycastHit.triangleIndexProperty The index of the triangle that was hit.