i am trying to use a custom force callback to generate angular and linear damping forces. This is what the callback looks like: (i am using OgreNewt)
- Code: Select all
Ogre::Vector3 angDamping;
angDamping = -10*body->getOmega();
body->addTorque(angDamping);
Ogre::Vector3 damping;
damping = (-3)*body->getVelocity();
body->addForce( damping );
Thereby i am experiencing the following issues: First the body behaves like expected, slowing down continously, but when it reaches an omega of 0.0607868 respectively a damping torque of -0.607868 (only having a rotation about one axis at the start), it suddenly stops to omega=zero, which looks very bad! Even more annoying, if i disable auto-sleep for the body, it keeps revolving at an omega of 0.0607868 till the end of time. If i set the standart newton parameters for damping instead, i do not experience these issues! Is there any way to fix this respectively am i doing something wrong? Thanks for your help
![Very Happy :D](./images/smilies/icon_biggrin.gif)
btw: i use a physics update rate of 100Hz