0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00
This commit is contained in:
Kenneth Rose 2024-07-16 18:49:46 +02:00 committed by GitHub
commit 67d6e13239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}