Skip to content

Commit 4b32505

Browse files
committed
calling adjust mass desyncs the debug graphics from the real positions of bodies
1 parent 62b7fce commit 4b32505

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/physics/p2/Body.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ Phaser.Physics.P2.Body.prototype = {
400400
adjustCenterOfMass: function () {
401401

402402
this.data.adjustCenterOfMass();
403+
this.shapeChanged();
403404

404405
},
405406

0 commit comments

Comments
 (0)