# Class RayColliderHit

The time of impact between a ray and a collider.

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

#####
Index

### Constructors

constructor

### Properties

collider
timeOfImpact

### Methods

fromRaw

## Constructors

### constructor

- new RayColliderHit(collider, timeOfImpact): RayColliderHit

- #### Parameters

  - collider: Collider
  - timeOfImpact: number

  #### Returns RayColliderHit

  - 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

### timeOfImpact

timeOfImpact: 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 * timeOfImpact`.

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

## Methods

### `Static` fromRaw

- fromRaw(colliderSet, raw): RayColliderHit

- #### Parameters

  - colliderSet: ColliderSet
  - raw: RawRayColliderHit

  #### Returns RayColliderHit

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