Class RayColliderToi

The time of impact between a ray and a collider.

Hierarchy

  • RayColliderToi

Constructors

Properties

Methods

Constructors

Properties

collider: Collider

The handle of the collider hit by the ray.

toi: number

The time-of-impact of the ray with the collider.

The hit point is obtained from the ray's origin and direction: origin + dir * toi.

Methods

Generated using TypeDoc