wrap(sprite, padding, useBounds, horizontal, vertical)
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. Please understand there are limitations to this method. For example if you have scaled the Worldthen objects won't always be re-