Skip to content

Commit 03810ec

Browse files
committed
Set 'part.angle' in 'Body.update' into matter-js
1 parent 07a2a81 commit 03810ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/physics/matter-js/lib/body

src/physics/matter-js/lib/body/Body.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ var Axes = require('../geometry/Axes');
468468
Axes.rotate(part.axes, delta);
469469
Bounds.update(part.bounds, part.vertices, body.velocity);
470470
if (i > 0) {
471+
part.angle += body.angularVelocity;
471472
Vector.rotateAbout(part.position, delta, body.position, part.position);
472473
}
473474
}

0 commit comments

Comments
 (0)