SOG: tell physics about when we want a force or a impulse. (sorry add to change here also)
parent
3b78e33d16
commit
e3226aecd9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue