AlexArroyoDuque Posted March 17, 2014 Share Posted March 17, 2014 HI!This error appears some times without clear reason.It happens when my bullet hit a wall and I want to remove the bullet. Anyone know the reason? Link to comment Share on other sites More sharing options...
rich Posted March 17, 2014 Share Posted March 17, 2014 Could it be already deleted by another process? Basically it errors because the body is no longer part of the world, for whatever reason that may be. I've added in an extra check to avoid the error from being thrown, it's a p2 level error that I now suppress, but in the meantime you could do:if (bullet.body.data.world == game.physics.p2) { remove it } Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted March 18, 2014 Author Share Posted March 18, 2014 Thanks @Rich Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted March 19, 2014 Author Share Posted March 19, 2014 Yesterday I upgraded to the development version 2.0.1. It seems to work better. Link to comment Share on other sites More sharing options...
Recommended Posts