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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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