Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RayColliderIntersection

The intersection between a ray and a collider. The intersection between a ray and a collider.

Hierarchy

  • RayColliderIntersection

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.

normal

normal: Vector

The normal of the collider at the hit point. The normal of the collider at the hit point.

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

Generated using TypeDoc