Jump to content

P2 Physics Questions


iShellz
 Share

Recommended Posts

to me it seems like p2 has big advantages in terms of physics simulation but lacks a LOT of useful functionality you have in arcade physics..  but if you want materials and springs you have to go with p2..  

 

i really hope that all the arcade stuff will eventually make it's way to p2.. like.. body.touching.right    customCollisionProcessHandler, gravityScale, and much much more..

Link to comment
Share on other sites

to me it seems like p2 has big advantages in terms of physics simulation but lacks a LOT of useful functionality you have in arcade physics..  but if you want materials and springs you have to go with p2..  

 

i really hope that all the arcade stuff will eventually make it's way to p2.. like.. body.touching.right    customCollisionProcessHandler, gravityScale, and much much more..

 

I would be all set with arcade physics if they had polygon support 

Link to comment
Share on other sites

Waiting for body.static fix.. And some other issues:
 

1) How to use applyForce?

when i try something like this:

sprite.body.applyForce(100,500,500);

sprite is just disappears without error messages.

 

2) Is it possible to drag p2 bodies with a pointer?

3) And examples with "constraint" dont work

http://examples.phaser.io/_site/view_full.html?d=p2%20physics&f=distance+constraint.js&t=distance%20constraint

Cant wait for everything work perfectly. Phaser is best.

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...