Physics.Arcade.Body#tilePadding

tilePadding : Phaser.Point

If this is an especially small or fast moving object then it can sometimes skip over tilemap collisions if it moves through a tile in a step.
Set this padding value to add extra padding to its bounds. tilePadding.x applied to its width, y to its height. Extra padding to be added to this sprite's dimensions when checking for tile collision.

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

Please login to continue.