From 401b97788f826397a552b25ab9b30c5549abd54f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 4 Jun 2012 20:35:12 +0100 Subject: fix addforce/impulse. --- OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 9a40ab5..9b3b51b 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs @@ -3252,9 +3252,9 @@ namespace OpenSim.Region.Physics.OdePlugin } - private void changeAddImpulse(Vector3 impulse) + private void changeAddForce(Vector3 theforce) { - m_forceacc += impulse *m_invTimeStep; + m_forceacc += theforce; if (!m_isSelected) { lock (this) @@ -3960,7 +3960,7 @@ namespace OpenSim.Region.Physics.OdePlugin break; case changes.AddForce: - changeAddImpulse((Vector3)arg); + changeAddForce((Vector3)arg); break; case changes.AddAngForce: -- cgit v1.1