mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Merge a36c6a6593
into acb99b6f87
This commit is contained in:
commit
67d6e13239
1 changed files with 1 additions and 0 deletions
|
@ -785,6 +785,7 @@ var Axes = require('../geometry/Axes');
|
|||
Vertices.rotate(part.vertices, body.angularVelocity, body.position);
|
||||
Axes.rotate(part.axes, body.angularVelocity);
|
||||
if (i > 0) {
|
||||
part.angle += body.angularVelocity;
|
||||
Vector.rotateAbout(part.position, body.angularVelocity, body.position, part.position);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue