mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
SOG: tell physics about when we want a force or a impulse. (sorry add to change here also)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user