True when the body is pressed against a ceiling
True when the body is resting on a floor
True when the body is against a wall on the left
True when the body is against a wall on the right
Whether this body was created as static
The underlying Phaser Arcade body — escape hatch for advanced use
Add an instant velocity delta (impulse)
StaticfromWrap the physics body of a game object that already has physics enabled. Returns null if the object has no body yet.
Typed, fluent wrapper around a Phaser Arcade physics body. Eliminates the
as unknown ascast pattern and adds config validation.Example
Example