Glancing through the code for btMultiBody, I noticed that there's a built-in damping factor of 0.04. I'm brand new to C++, but I can't seem to find a way to set this value externally. Before I attempt to change Bullet's source code and reinstall everything, is there an obvious solution I'm missing? It seems unlikely to have an unsettable parameter like this.
Thanks for bearing with my stupid question
Code: Select all
btMultiBody::btMultiBody(int n_links,
btScalar mass,
const btVector3 &inertia,
bool fixed_base_,
bool can_sleep_)
: base_quat(0, 0, 0, 1),
base_mass(mass),
base_inertia(inertia),
fixed_base(fixed_base_),
awake(true),
can_sleep(can_sleep_),
sleep_timer(0),
m_baseCollider(0),
m_linearDamping(0.04f),
m_angularDamping(0.04f),
m_useGyroTerm(true),
m_maxAppliedImpulse(1000.f),
m_hasSelfCollision(true)