From e3226aecd9fd1859f450f7912a6544c563834fcf Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 5 May 2012 10:47:51 +0100 Subject: SOG: tell physics about when we want a force or a impulse. (sorry add to change here also) --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 7e6b077..f9c2193 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2276,7 +2276,8 @@ namespace OpenSim.Region.Framework.Scenes if (pa != null) { - pa.AddForce(impulse, true); + // false to be applied as a impulse + pa.AddForce(impulse, false); m_scene.PhysicsScene.AddPhysicsActorTaint(pa); } } @@ -2290,7 +2291,8 @@ namespace OpenSim.Region.Framework.Scenes { if (!IsAttachment) { - pa.AddAngularForce(impulse, true); + // false to be applied as a impulse + pa.AddAngularForce(impulse, false); m_scene.PhysicsScene.AddPhysicsActorTaint(pa); } } -- cgit v1.1