# Class ShapeColliderTOI

The intersection between a ray and a collider.

#### Hierarchy

- ShapeTOI
  - ShapeColliderTOI

- Defined in geometry/toi.d.ts:39

#####
Index

### Constructors

constructor

### Properties

collider
normal1
normal2
toi
witness1
witness2

### Methods

fromRaw

## Constructors

### constructor

- new ShapeColliderTOI(collider: Collider, toi: number, witness1: Vector, witness2: Vector, normal1: Vector, normal2: Vector): ShapeColliderTOI

- #### Parameters

  - ##### collider: Collider

  - ##### toi: number

  - ##### witness1: Vector

  - ##### witness2: Vector

  - ##### normal1: Vector

  - ##### normal2: Vector

  #### Returns ShapeColliderTOI

  Overrides ShapeTOI.constructor

  - Defined in geometry/toi.d.ts:44

## Properties

### collider

collider: Collider

The handle of the collider hit by the ray.

- Defined in geometry/toi.d.ts:43

### normal1

normal1: Vector

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

Inherited from ShapeTOI.normal1

- Defined in geometry/toi.d.ts:27

### normal2

normal2: Vector

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

Inherited from ShapeTOI.normal2

- Defined in geometry/toi.d.ts:32

### toi

toi: number

The time of impact of the two shapes.

Inherited from ShapeTOI.toi

- Defined in geometry/toi.d.ts:12

### witness1

witness1: Vector

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

Inherited from ShapeTOI.witness1

- Defined in geometry/toi.d.ts:17

### witness2

witness2: Vector

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

Inherited from ShapeTOI.witness2

- Defined in geometry/toi.d.ts:22

## Methods

### `Static` fromRaw

- fromRaw(colliderSet: ColliderSet, raw: RawShapeColliderTOI): ShapeColliderTOI

- #### Parameters

  - ##### colliderSet: ColliderSet

  - ##### raw: RawShapeColliderTOI

  #### Returns ShapeColliderTOI

  Overrides ShapeTOI.fromRaw

  - Defined in geometry/toi.d.ts:45

Generated using TypeDoc