Bug in btSoftBody::applyForces()?

peteb
Posts: 1
Joined: Mon Jul 04, 2011 4:28 pm

Bug in btSoftBody::applyForces()?

Post by peteb »

Bullet 2.78

Stepping through the code in btSoftBody::applyForces(), if using water and air drag then EvaluateMedium figures out if the node is below the water plane and sets medium.m_density.
After EvaluateMedium is called, m_density is then reset to m_worldInfo->air_density.
Is this correct?