Hi, I loaded the rigid body joint parameters from a software using bullet physics and checked the results.
I ask because there is a big difference from the original program.
This is the original physics. recorded the MMD.
And this is what I implemented in babylon.js using havok physics(Pay attention to the movement of her hair).
This is the result of multiplying the linear damping by 10. It matched the original fairly well.
My question is, exactly what calculation do I need to do to convert the damping parameters in bullet physics to the correct damping values in havok physics?
Here is the code for two existing implementations that use bullet physics for my question.
Implementation using C++ and bullet physics:
https://github.com/benikabocha/saba/blob/master/src/Saba/Model/MMD/MMDPhysics.cpp#L600-L620
Implementation using javascript and ammo.js:
https://github.com/mrdoob/three.js/blob/dev/examples/jsm/animation/MMDPhysics.js#L910-L961
And this is the code I’m currently implementing.
https://github.com/noname0310/babylon-mmd/blob/main/src/Runtime/mmdPhysics.ts#L363-L399