robin.vivant Posted March 18, 2014 Share Posted March 18, 2014 Hi, 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 More sharing options...
rich Posted March 18, 2014 Share Posted March 18, 2014 This is fixed in the dev branch. They work fine, the issue was they weren't compiled into the phaser.js file. Link to comment Share on other sites More sharing options...
robin.vivant Posted March 19, 2014 Author Share Posted March 19, 2014 Thanks, jumping to 2.0.1 ! Link to comment Share on other sites More sharing options...
Recommended Posts