I cant get the p2 physics constraints of any type to work, I use the following code:
this.rope = new p2.DistanceConstraint(this.actor.p2Body.body, player.p2Body.body, p2.Constraint.DISTANCE, {
localAnchorA: [0, 0],
localAnchorB: [0, 0],
});
and I get the following error:
"Uncaught TypeError: Cannot use 'in' operator to search for 'localAnchorA' in 1"
I am not sure if I am doing something wrong or if this is a bug, has any one else been able to create a p2 physics constraint?