SOG: tell physics about when we want a force or a impulse. (sorry add to change here also)

avinationmerge
UbitUmarov 2012-05-05 10:47:51 +01:00
parent 3b78e33d16
commit e3226aecd9
1 changed files with 4 additions and 2 deletions

View File

@ -2276,7 +2276,8 @@ namespace OpenSim.Region.Framework.Scenes
if (pa != null) if (pa != null)
{ {
pa.AddForce(impulse, true); // false to be applied as a impulse
pa.AddForce(impulse, false);
m_scene.PhysicsScene.AddPhysicsActorTaint(pa); m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
} }
} }
@ -2290,7 +2291,8 @@ namespace OpenSim.Region.Framework.Scenes
{ {
if (!IsAttachment) if (!IsAttachment)
{ {
pa.AddAngularForce(impulse, true); // false to be applied as a impulse
pa.AddAngularForce(impulse, false);
m_scene.PhysicsScene.AddPhysicsActorTaint(pa); m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
} }
} }