holmberd Posted September 25, 2015 Share Posted September 25, 2015 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 More sharing options...
Recommended Posts