Hello everyone!
I'm trying to understand how to use physics engine in Babylon. I understood the basical instructions and all about this is clear.
But I've a serious problem that I'll explain with an example.
I've a cube that falls onto a plane having a fixed angular velocity, here is the playground: http://www.babylonjs-playground.com/#UQNWL
Obviously:
if I set the frictions with very large values then the box will very fastly loose its angular velocty when it'll fall onto the plane
if I set both the frictions values equals to 0 then the box will never stop and will rotate onto the plane forever...
But...what if I want that the cube will stop in 5.76746 seconds? In this case, which values I have to put into the "friction" variables? Maybe I've the answer:
I have to know the physical equations used by cannon.js,
then I've to solve my physics exercise,
and then I've to put the correct values into the "friction" variables.
If I'm right, where can I find the EXACT equations used by cannon.js? Is there a sort of manual? Or I've to deduce them from the code?
Is there another way to solve the problem?
Thank you so much!
Best regards.