Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

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...