Nambiar Posted July 28, 2014 Share Posted July 28, 2014 First off, you should useworld.wrap(sprite)inside of update functions. Wasn't quite obvious to me at first, so putting it out there. Second - with a p2 physics body attached to a sprite, you should callworld.wrap(sprite.body)for it to work properly. This isn't obvious either. I searched around and found nothing before trying it out. So here it is. tidelake and dlsso 2 Link to comment Share on other sites More sharing options...
tidelake Posted April 25, 2016 Share Posted April 25, 2016 I had a problem using the examples `game.world.wrap(sprite.body, 0, true)` -- kept getting a.getBounds is not defined. So far it's working on p2 bodies with simply Quote game.world.wrap(sprite.body) Link to comment Share on other sites More sharing options...
Recommended Posts