rhllor Posted July 21, 2015 Share Posted July 21, 2015 Hello community, After I load my polygon it seems there is an offset between my sprite and physics.I am having problems with the offset of box2d. It does not seem to work. can someone enlighten me about this problem ? Thanks I am actually using body.offset.x Link to comment Share on other sites More sharing options...
CodeToWin Posted July 21, 2015 Share Posted July 21, 2015 I've never played with Box2D, as I'm still new to Phaser. My best advice would be to go to the phaser examples and check out the code snippets, if you haven't already. There are quite a few and they might be helpful. http://phaser.io/examples/v2/category/box2d Link to comment Share on other sites More sharing options...
rhllor Posted July 23, 2015 Author Share Posted July 23, 2015 thank you codeToWin, solved the problem finally. Box2D is awesome, you should try it out. It has a very good engine. I've developed a pinball game with box2d. I will send you the link later. Now im currently developing an endless-runner. keep in touch! have a good day jdnichollsc 1 Link to comment Share on other sites More sharing options...
Recommended Posts