scale avatar push force with avatar density

avinationmerge
UbitUmarov 2012-02-11 02:48:38 +00:00
parent 83868c0387
commit b617411b97
1 changed files with 2 additions and 1 deletions

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);
}