# Class RayColliderToi

The time of impact between a ray and a collider.

#### Hierarchy

- RayColliderToi

- Defined in geometry/ray.d.ts:84

#####
Index

### Constructors

constructor

### Properties

collider
toi

### Methods

fromRaw

## Constructors

### constructor

- new RayColliderToi(collider: Collider, toi: number): RayColliderToi

- #### Parameters

  - ##### collider: Collider

  - ##### toi: number

  #### Returns RayColliderToi

  - Defined in geometry/ray.d.ts:95

## Properties

### collider

collider: Collider

The handle of the collider hit by the ray.

- Defined in geometry/ray.d.ts:88

### toi

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`.

- Defined in geometry/ray.d.ts:94

## Methods

### `Static` fromRaw

- fromRaw(colliderSet: ColliderSet, raw: RawRayColliderToi): RayColliderToi

- #### Parameters

  - ##### colliderSet: ColliderSet

  - ##### raw: RawRayColliderToi

  #### Returns RayColliderToi

  - Defined in geometry/ray.d.ts:96

Generated using TypeDoc