Physics.Arcade.Body#blocked

blocked : Object

This object is populated with boolean values when the Body collides with the World bounds or a Tile.
For example if blocked.up is true then the Body cannot move up. An object containing on which faces this Body is blocked from moving, if any.

Source code: physics/arcade/Body.js (Line 390)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.