After upgrading to babylon.JS 3.2 / 4.0 I noticed, that most of my (static) physical objects behaved strange and started moving through the scene … I analyzed the issue and found out, that the culprit was the assignment of a different Pivot using setPivotMatrix
for certain meshes.
Please see this Playground:
https://playground.babylonjs.com/#7149G4#45
The static box starts and keeps on moving although its mass is set to 0
.
In the // problematic section ..
, a PivotMatrix is set.
I already read your article about the breaking changes concerning the setPivotMatrix
method and it’s second (boolean) parameter but I’ve tried everything to get this issue fixed! ( also using false
or true
did not solve this issue.
Do you know, how to solve this issue and how to use the pivot matrices in combination with cannon.js again? Any help would be greatly appreciated!
Thanks in advance and keep up your awesome work on babylon.JS !
Christopher