Skip to content

Commit 13fcb4b

Browse files
committed
fixed bug in constraints for compounds
1 parent 17589bc commit 13fcb4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/constraint/Constraint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ var Constraint = {};
265265
if (j > 0) {
266266
Vector.rotateAbout(part.position, impulse.angle, body.position, part.position);
267267
}
268-
impulse.angle = 0;
269268
}
270269

271270
Bounds.update(part.bounds, part.vertices);
272271
}
273272

273+
impulse.angle = 0;
274274
impulse.x = 0;
275275
impulse.y = 0;
276276
}

0 commit comments

Comments
 (0)