Class RayIntersection

The intersection between a ray and a collider.

Hierarchy

  • RayIntersection

Constructors

Properties

Methods

Constructors

Properties

featureId: number

The id of the geometric feature the point was projected on.

featureType: FeatureType

The type of the geometric feature the point was projected on.

normal: Vector

The normal of the collider at the hit point.

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