Class PointColliderProjection

The projection of a point on a collider (includes the collider handle).

Constructors

Properties

collider: Collider

The collider hit by the ray.

featureId: number

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

featureType: FeatureType

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

isInside: boolean

Is the point inside of the collider?

point: Vector

The projection of the point on the collider.

Methods

  • Parameters

    • colliderSet: ColliderSet

      The set the projected-on collider belongs to.

    • raw: RawPointColliderProjection

      The raw projection returned by the WASM query. It is freed by this method.

    • Optional target: PointColliderProjection

      If provided, this object is populated and returned instead of allocating a new one.

    Returns PointColliderProjection