mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
fixed bug in constraints for compounds
This commit is contained in:
parent
17589bc46f
commit
13fcb4b8f9
1 changed files with 1 additions and 1 deletions
|
@ -265,12 +265,12 @@ var Constraint = {};
|
|||
if (j > 0) {
|
||||
Vector.rotateAbout(part.position, impulse.angle, body.position, part.position);
|
||||
}
|
||||
impulse.angle = 0;
|
||||
}
|
||||
|
||||
Bounds.update(part.bounds, part.vertices);
|
||||
}
|
||||
|
||||
impulse.angle = 0;
|
||||
impulse.x = 0;
|
||||
impulse.y = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue