Fix merge artefacts

avinationmerge
Melanie 2012-04-03 23:13:48 +02:00
parent 63c44719f7
commit 1c4bcf3fed
2 changed files with 2 additions and 27 deletions

View File

@ -2181,20 +2181,6 @@ namespace OpenSim.Region.Framework.Scenes
}
}
public void applyAngularImpulse(Vector3 impulse)
{
PhysicsActor pa = RootPart.PhysActor;
if (pa != null)
{
if (!IsAttachment)
{
pa.AddAngularForce(impulse, true);
m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
}
}
}
public void setAngularImpulse(Vector3 impulse)
{
PhysicsActor pa = RootPart.PhysActor;
@ -2211,18 +2197,7 @@ namespace OpenSim.Region.Framework.Scenes
public Vector3 GetTorque()
{
PhysicsActor pa = RootPart.PhysActor;
if (pa != null)
{
if (!IsAttachment)
{
Vector3 torque = pa.Torque;
return torque;
}
}
return Vector3.Zero;
return Torque;
}
// This is used by both Double-Click Auto-Pilot and llMoveToTarget() in an attached object

View File

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