Fix merge artefacts
parent
63c44719f7
commit
1c4bcf3fed
|
@ -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)
|
public void setAngularImpulse(Vector3 impulse)
|
||||||
{
|
{
|
||||||
PhysicsActor pa = RootPart.PhysActor;
|
PhysicsActor pa = RootPart.PhysActor;
|
||||||
|
@ -2211,18 +2197,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
public Vector3 GetTorque()
|
public Vector3 GetTorque()
|
||||||
{
|
{
|
||||||
PhysicsActor pa = RootPart.PhysActor;
|
return Torque;
|
||||||
|
|
||||||
if (pa != null)
|
|
||||||
{
|
|
||||||
if (!IsAttachment)
|
|
||||||
{
|
|
||||||
Vector3 torque = pa.Torque;
|
|
||||||
return torque;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return Vector3.Zero;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is used by both Double-Click Auto-Pilot and llMoveToTarget() in an attached object
|
// This is used by both Double-Click Auto-Pilot and llMoveToTarget() in an attached object
|
||||||
|
|
|
@ -1803,7 +1803,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
impulse = newimpulse;
|
impulse = newimpulse;
|
||||||
}
|
}
|
||||||
|
|
||||||
ParentGroup.applyAngularImpulse(impulse);
|
ParentGroup.setAngularImpulse(impulse);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue