I'm still porting our engine from ODE to Bullet and and i have suggestions from the setDamping functions:
1] it should be great to access linear and angular parts separately. in our case, a thread controls the linear part, a second the angular part and it is not coherent to share the data in order to call the unique void btRigidBody::setDamping(btScalar lin_damping, btScalar ang_damping)
2] the damping code is:
Code: Select all
m_linearVelocity *= btPow(btScalar(1)-m_linearDamping, timeStep);
m_angularVelocity *= btPow(btScalar(1)-m_angularDamping, timeStep);Code: Select all
dReal k1 = 1 - b->dampingp.angular_scale;
dReal k2 = 1 - b->dampingp.linear_scale;
b->avel*=k1
b->lvel*=k2
What do you think about these suggestions ?
Thanks