# Class RayIntersection

The intersection between a ray and a collider.

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

#####
Index

### Constructors

constructor

### Properties

featureId
featureType
normal
timeOfImpact

### Methods

fromRaw

## Constructors

### constructor

- new RayIntersection(timeOfImpact, normal, featureType?, featureId?): RayIntersection

- #### Parameters

  - timeOfImpact: number
  - normal: Vector
  - `Optional` featureType: FeatureType
  - `Optional` featureId: number

  #### Returns RayIntersection

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

## Properties

### featureId

featureId: number

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

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

### featureType

featureType: FeatureType

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

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

### normal

normal: Vector

The normal of the collider at the hit point.

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

### 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:36

## Methods

### `Static` fromRaw

- fromRaw(raw): RayIntersection

- #### Parameters

  - raw: RawRayIntersection

  #### Returns RayIntersection

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