files___ Posted February 1, 2017 Share Posted February 1, 2017 Hi folks, I need help! How can I remove a constraint?! I have: game.physics.p2.createRevoluteConstraint(nearest, [0,0], newRect2, [0,0], maxForce); Later, in the code, I need to destroy the layer, but before to do that, I need to remove the constraint! Link to comment Share on other sites More sharing options...
mwissink Posted February 6, 2017 Share Posted February 6, 2017 I would recommend this post http://www.html5gamedevs.com/topic/14763-how-to-remove-a-constraint-in-p2/ it seems to answer your question Link to comment Share on other sites More sharing options...
Recommended Posts