diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs b/OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs index 3db8f2c..f2019ae 100644 --- a/OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSActorMoveToTarget.cs | |||
@@ -205,13 +205,13 @@ public class BSActorMoveToTarget : BSActor | |||
205 | addedForce = correctionVector / timeStep; | 205 | addedForce = correctionVector / timeStep; |
206 | // Remove the existing velocity (only the moveToTarget force counts) | 206 | // Remove the existing velocity (only the moveToTarget force counts) |
207 | addedForce -= m_controllingPrim.RawVelocity; | 207 | addedForce -= m_controllingPrim.RawVelocity; |
208 | // Overcome gravity. | 208 | // Overcome gravity. |
209 | addedForce -= m_controllingPrim.Gravity; | 209 | addedForce -= m_controllingPrim.Gravity; |
210 | 210 | ||
211 | // Add enough force to overcome the mass of the object | 211 | // Add enough force to overcome the mass of the object |
212 | addedForce *= m_controllingPrim.Mass; | 212 | addedForce *= m_controllingPrim.Mass; |
213 | 213 | ||
214 | m_controllingPrim.AddForce(addedForce, false /* pushForce */, true /* inTaintTime */); | 214 | m_controllingPrim.AddForce(true /* inTaintTime */, addedForce); |
215 | } | 215 | } |
216 | m_physicsScene.DetailLog("{0},BSActorMoveToTarget.Mover3,move,fromPos={1},addedForce={2}", | 216 | m_physicsScene.DetailLog("{0},BSActorMoveToTarget.Mover3,move,fromPos={1},addedForce={2}", |
217 | m_controllingPrim.LocalID, origPosition, addedForce); | 217 | m_controllingPrim.LocalID, origPosition, addedForce); |