Jump to content

P2 physics Constraint examples not working.


Recommended Posts



I'm currently switching from 1.4 to phaser 2.0 and I have an issues with P2 constraints.

I need to apply a distance constraint, but like the official example I get the following error : "TypeError: Phaser.Physics.P2.DistanceConstraint is not a constructor"

In the console if I type "Phaser.Physics.P2.DistanceConstraint" I get an undefined reference.



What the hell ? I really need this feature for my project, in the mean time I'll stay on phaser 1.4...


Thanks !

Link to comment
Share on other sites


  • Recently Browsing   0 members

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