API

Interface IRaycastQuery

Interface for query parameters in the raycast function.

interface IRaycastQuery {
    collideWith?: number;
    ignoreBody?: PhysicsBody;
    membership?: number;
    shouldHitTriggers?: boolean;
}
Index
collideWith?: number

CollideWith mask

ignoreBody?: PhysicsBody

Ignores the body passed if it is in the query

membership?: number

Membership mask

shouldHitTriggers?: boolean

Should trigger collisions be considered in the query?