Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShapeColliderTOI

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

Hierarchy

  • ShapeColliderTOI

Index

Constructors

constructor

Properties

colliderHandle

colliderHandle: ColliderHandle

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

normal1

normal1: Vector

The local-space normal on the first shape, at the time of impact. The local-space normal on the first shape, at the time of impact.

normal2

normal2: Vector

The local-space normal on the second shape, at the time of impact. The local-space normal on the second shape, at the time of impact.

toi

toi: number

The time of impact of the two shapes. The time of impact of the two shapes.

witness1

witness1: Vector

The local-space contact point on the first shape, at the time of impact. The local-space contact point on the first shape, at the time of impact.

witness2

witness2: Vector

The local-space contact point on the second shape, at the time of impact. The local-space contact point on the second shape, at the time of impact.

Methods

Static fromRaw

  • Parameters

    • raw: RawShapeColliderTOI

    Returns ShapeColliderTOI

  • Parameters

    • raw: RawShapeColliderTOI

    Returns ShapeColliderTOI

Generated using TypeDoc