Hierarchy

  • RayCastHit

Properties

Reference to the body that was hit

collider: Collider

Reference to the collider that was hit

distance: number

The distance along the ray cast in pixels that a hit was detected

point: Vector

World space point of the hit