MXPain Posted January 13, 2014 Share Posted January 13, 2014 Please tell me, how I can use P2.js physics in phaser framework? Whether there is an example of this? I have seen what p2 files included in sources framework? but I don't know how to call P2 physics in phaser. I would be very grateful for the help) Link to comment Share on other sites More sharing options...
rich Posted January 13, 2014 Share Posted January 13, 2014 Yeah we've merged the p2.js files in there because we have been doing quite a bit of testing to see if it will be suitable. Now we know it will work great for us development will start soon re: fully integrating it. In the meantime you'd have to roll your own implementation I'm afraid. Link to comment Share on other sites More sharing options...
MXPain Posted January 13, 2014 Author Share Posted January 13, 2014 Rich, I tried to connect box2dweb but why the body falls too slow probably conflict with your native physics engine? my simple example herehttps://dl.dropboxusercontent.com/u/15161237/phaser_box2dweb.rar How can I disable the native physics phaser? Link to comment Share on other sites More sharing options...
rich Posted January 13, 2014 Share Posted January 13, 2014 Just set sprite.body to null. Link to comment Share on other sites More sharing options...
MXPain Posted January 13, 2014 Author Share Posted January 13, 2014 same result, fall of body very slowly Link to comment Share on other sites More sharing options...
rich Posted January 13, 2014 Share Posted January 13, 2014 Then the issue is the p2 body settings (or the frequency of the p2 world step) Link to comment Share on other sites More sharing options...
MXPain Posted January 16, 2014 Author Share Posted January 16, 2014 thanks, i will try it Link to comment Share on other sites More sharing options...
Recommended Posts