mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
World Wrap and P2
Changes only to documentation for clarity.
This commit is contained in:
parent
aabdf6f97a
commit
9977d5e204
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ Phaser.World.prototype.shutdown = function () {
|
|||
/**
|
||||
* This will take the given game object and check if its x/y coordinates fall outside of the world bounds.
|
||||
* If they do it will reposition the object to the opposite side of the world, creating a wrap-around effect.
|
||||
* If sprite has a P2 body then the body (sprite.body) should be passed as first parameter to the function.
|
||||
*
|
||||
* @method Phaser.World#wrap
|
||||
* @param {Phaser.Sprite|Phaser.Image|Phaser.TileSprite|Phaser.Text} sprite - The object you wish to wrap around the world bounds.
|
||||
|
|
Loading…
Reference in a new issue