1681-engine / index / RaycastOptions
Interface: RaycastOptions ​
Defined in: src/physics/types.ts:120
Properties ​
filter? ​
ts
optional filter?: (body) => boolean;Defined in: src/physics/types.ts:126
Skip bodies this returns false for (the caster itself, say).
Parameters ​
| Parameter | Type |
|---|---|
body | Body |
Returns ​
boolean
includeSensors? ​
ts
optional includeSensors?: boolean;Defined in: src/physics/types.ts:124
Sensors are skipped unless this is true.
mask? ​
ts
optional mask?: number;Defined in: src/physics/types.ts:122
Only bodies whose layer shares a bit with this (default all).