Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RayColliderToi

The time of impact between a ray and a collider. The time of impact between a ray and a collider.

Hierarchy

  • RayColliderToi

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

colliderHandle

colliderHandle: ColliderHandle

The handle of the collider hit by the ray. The handle of the collider hit by the ray.

toi

toi: number

The time-of-impact of the ray with the collider. 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.

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

Methods

Static fromRaw

  • Parameters

    • raw: RawRayColliderToi

    Returns RayColliderToi

  • Parameters

    • raw: RawRayColliderToi

    Returns RayColliderToi

Generated using TypeDoc