API

Interface RaycastQuery

Query parameters for physicsRaycast.

interface RaycastQuery {
    collideWith?: number;
    membership?: number;
    shouldHitTriggers?: boolean;
}
Index
collideWith?: number

Bitmask describing which collision groups the ray collides with. Default ~0 (all).

membership?: number

Bitmask describing which collision groups the ray belongs to. Default ~0 (all).

shouldHitTriggers?: boolean

Whether trigger volumes count as hits. Default false.