API

Interface IPhysicsPointProximityQuery

Interface for point proximity query.

interface IPhysicsPointProximityQuery {
    collisionFilter: IRaycastQuery;
    ignoreBody?: PhysicsBody;
    maxDistance: number;
    position: Vector3;
    shouldHitTriggers: boolean;
}
Index
collisionFilter: IRaycastQuery

Collision filter for the query.

ignoreBody?: PhysicsBody

Should the query ignore the body that is passed in?

maxDistance: number

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

position: Vector3

The position of the query

shouldHitTriggers: boolean

Should trigger collisions be considered in the query?