gingerbeardman Posted April 7, 2015 Share Posted April 7, 2015 I'm seeing some odd behaviour in my game. The debug/collision bodies seem to be tracking behind the actual location of the sprite? Is this normal? Am I doing something wrong? (image: top dot is travelling right, bottom dot is travelling up) Link to comment Share on other sites More sharing options...
gingerbeardman Posted April 15, 2015 Author Share Posted April 15, 2015 Anybody? Link to comment Share on other sites More sharing options...
valueerror Posted April 15, 2015 Share Posted April 15, 2015 i experienced the same thing weeks ago and also posted about this.. as far as i can remember rich fixed this.. it's just that the debug body rendering happens one frame after the rendering of the image.. nothing special... Link to comment Share on other sites More sharing options...
valueerror Posted April 15, 2015 Share Posted April 15, 2015 http://www.html5gamedevs.com/topic/10662-bug-or-feature-p2-physics-body-is-not-below-the-rendered-sprite/ Link to comment Share on other sites More sharing options...
ForgeableSum Posted April 15, 2015 Share Posted April 15, 2015 Are the bodies lagging themselves or is the debugging which shows the bodies lagging? If it's the latter, I wouldn't worry to much about it. Debugging lines/fills are drawn perpetually and updated by the game loop so it's no wonder they are not a 100% accurate visual representation of where the body is. Link to comment Share on other sites More sharing options...
gingerbeardman Posted April 15, 2015 Author Share Posted April 15, 2015 Thanks all. I won't worry then! I'll change position in preRender if it continues to annoy. Link to comment Share on other sites More sharing options...
Recommended Posts