scale avatar push force with avatar density
parent
83868c0387
commit
b617411b97
|
@ -768,7 +768,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (pushforce)
|
if (pushforce)
|
||||||
{
|
{
|
||||||
m_pidControllerActive = false;
|
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;
|
m_hasTaintForce = true;
|
||||||
_parent_scene.AddPhysicsActorTaint(this);
|
_parent_scene.AddPhysicsActorTaint(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue