# Class RayColliderIntersection

The intersection between a ray and a collider (includes the collider handle).

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

#####
Index

### Constructors

constructor

### Properties

collider
featureId
featureType
normal
timeOfImpact

### Methods

fromRaw

## Constructors

### constructor

- new RayColliderIntersection(collider, timeOfImpact, normal, featureType?, featureId?): RayColliderIntersection

- #### Parameters

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

  #### Returns RayColliderIntersection

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

## Properties

### collider

collider: Collider

The collider hit by the ray.

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

### featureId

featureId: number

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

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

### featureType

featureType: FeatureType

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

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

### normal

normal: Vector

The normal of the collider at the hit point.

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

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

## Methods

### `Static` fromRaw

- fromRaw(colliderSet, raw): RayColliderIntersection

- #### Parameters

  - colliderSet: ColliderSet
  - raw: RawRayColliderIntersection

  #### Returns RayColliderIntersection

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