API

Interface IPhysicsShapeProximityCastQuery

Query for shape proximity.

interface IPhysicsShapeProximityCastQuery {
    ignoreBody?: PhysicsBody;
    maxDistance: number;
    position: Vector3;
    rotation: Quaternion;
    shape: PhysicsShape;
    shouldHitTriggers: boolean;
}
Index
ignoreBody?: PhysicsBody

Ignores the body passed if it is in the query

maxDistance: number

Maximum distance to check for collisions. Can be set to 0 to check for overlaps.

position: Vector3

The position of shape

rotation: Quaternion

The rotation of shape

The shape to test proximity against

shouldHitTriggers: boolean

Should trigger collisions be considered in the query?