Fix vehicles going physical stopping llTargetOmega parts (boat radar)

avinationmerge
Melanie 2012-02-27 08:50:19 +01:00
parent d342008e5b
commit aee4ca2f1c
1 changed files with 5 additions and 3 deletions

View File

@ -916,7 +916,7 @@ namespace OpenSim.Region.Framework.Scenes
get get
{ {
PhysicsActor actor = PhysActor; PhysicsActor actor = PhysActor;
if ((actor != null) && actor.IsPhysical) if ((actor != null) && actor.IsPhysical && ParentGroup.RootPart == this)
{ {
m_angularVelocity = actor.RotationalVelocity; m_angularVelocity = actor.RotationalVelocity;
} }
@ -1893,6 +1893,7 @@ namespace OpenSim.Region.Framework.Scenes
Velocity = new Vector3(0, 0, 0); Velocity = new Vector3(0, 0, 0);
Acceleration = new Vector3(0, 0, 0); Acceleration = new Vector3(0, 0, 0);
if (ParentGroup.RootPart == this)
AngularVelocity = new Vector3(0, 0, 0); AngularVelocity = new Vector3(0, 0, 0);
PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate; PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
@ -1917,6 +1918,7 @@ namespace OpenSim.Region.Framework.Scenes
// velocity-vector. // velocity-vector.
Velocity = new Vector3(0, 0, 0); Velocity = new Vector3(0, 0, 0);
Acceleration = new Vector3(0, 0, 0); Acceleration = new Vector3(0, 0, 0);
if (ParentGroup.RootPart == this)
AngularVelocity = new Vector3(0, 0, 0); AngularVelocity = new Vector3(0, 0, 0);
//RotationalVelocity = new Vector3(0, 0, 0); //RotationalVelocity = new Vector3(0, 0, 0);
} }