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).
parent
823895b997
commit
787cc0d076
|
@ -2181,7 +2181,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAngularImpulse(Vector3 impulse)
|
public void ApplyAngularImpulse(Vector3 impulse)
|
||||||
{
|
{
|
||||||
PhysicsActor pa = RootPart.PhysActor;
|
PhysicsActor pa = RootPart.PhysActor;
|
||||||
|
|
||||||
|
@ -2189,7 +2189,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
if (!IsAttachment)
|
if (!IsAttachment)
|
||||||
{
|
{
|
||||||
pa.Torque = impulse;
|
pa.AddAngularForce(impulse, true);
|
||||||
m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
|
m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1789,7 +1789,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
impulse = newimpulse;
|
impulse = newimpulse;
|
||||||
}
|
}
|
||||||
|
|
||||||
ParentGroup.setAngularImpulse(impulse);
|
ParentGroup.ApplyAngularImpulse(impulse);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue