Physics.Arcade.Body#collideWorldBounds

collideWorldBounds : boolean

A Body can be set to collide against the World bounds automatically and rebound back into the World if this is set to true. Otherwise it will leave the World. Should the Body collide with the World bounds?

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

Please login to continue.