Physics · function
layersInteract
The 32-layer mask, both ways. A pair layersInteract only if each side admits the other.
Explained in Your first game, Rigid bodies.
function layersInteract(bodies: BodySet, a: number, b: number): booleanimport { layersInteract } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
bodies | BodySet | |
a | number | |
b | number |