Jump to content

P2: Constraints and world wrap.


Recommended Posts

With constraints on a group of sprites and using world wrap, as soon as one body go outside the world boundaries the constraint tries to pull them back resulting in unwanted behaviour. Using the code below:

 myGroup.group.forEachExists(function(sprite) {                        game.world.wrap(sprite.body);                    });
Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...