reverted changes to llApplyRotationalImpulse execution in SOP/SOG. This functions naming is misleading, Here Apply means to apply a instante impulse that may add to previus unprocessed ones and not setting a permanente torque (that is done by llSetTorque).

avinationmerge
UbitUmarov 2012-04-04 16:38:29 +01:00
parent 823895b997
commit 787cc0d076
2 changed files with 3 additions and 3 deletions

View File

@ -2181,7 +2181,7 @@ namespace OpenSim.Region.Framework.Scenes
}
}
public void setAngularImpulse(Vector3 impulse)
public void ApplyAngularImpulse(Vector3 impulse)
{
PhysicsActor pa = RootPart.PhysActor;
@ -2189,7 +2189,7 @@ namespace OpenSim.Region.Framework.Scenes
{
if (!IsAttachment)
{
pa.Torque = impulse;
pa.AddAngularForce(impulse, true);
m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
}
}

View File

@ -1789,7 +1789,7 @@ namespace OpenSim.Region.Framework.Scenes
impulse = newimpulse;
}
ParentGroup.setAngularImpulse(impulse);
ParentGroup.ApplyAngularImpulse(impulse);
}
/// <summary>