scale avatar push force with avatar density

This commit is contained in:
UbitUmarov
2012-02-11 02:48:38 +00:00
parent 83868c0387
commit b617411b97

View File

@@ -768,7 +768,8 @@ namespace OpenSim.Region.Physics.OdePlugin
if (pushforce)
{
m_pidControllerActive = false;
m_taintForce = force / _parent_scene.ODE_STEPSIZE;
// scale with odetime step and density
m_taintForce = force * m_density / _parent_scene.ODE_STEPSIZE / 28f;
m_hasTaintForce = true;
_parent_scene.AddPhysicsActorTaint(this);
}