Closed quinton-ashley closed 12 months ago
Changing a collider's mass using body.setMassData cancels its linearVelocity. I think linearVelocity should be maintained in most cases. Perhaps there's a bug in how the collider's new linearVelocity is calculated.
body.setMassData
I guess it was fixed here
Are you using the latest version?
yeah I'm using v1 beta 15 planck.min.js
Ops, that commit fixes resetMassData; setMassData was not fixed. I just fixed it and published the update.
Awesome! thank you 🙏🏻
Thanks for reporting the issue!
Changing a collider's mass using
body.setMassData
cancels its linearVelocity. I think linearVelocity should be maintained in most cases. Perhaps there's a bug in how the collider's new linearVelocity is calculated.