let SOP AngularVelocity set physics actor angular velocity if it's

physical root prim and not a vehicle. With this llSetAngularVelocity
should work and also llTargetOmega will do the same in this case.
but for now this llTargetOmega is being a normal physical rotation with
damping, and stops with selection. Thats not like SL apparently
avinationmerge
UbitUmarov 2012-07-10 05:37:41 +01:00
parent 652ac5f66b
commit acec9da95c
1 changed files with 9 additions and 1 deletions

View File

@ -959,7 +959,15 @@ namespace OpenSim.Region.Framework.Scenes
} }
return m_angularVelocity; return m_angularVelocity;
} }
set { m_angularVelocity = value; } set
{
m_angularVelocity = value;
PhysicsActor actor = PhysActor;
if ((actor != null) && actor.IsPhysical && ParentGroup.RootPart == this && VehicleType == (int)Vehicle.TYPE_NONE)
{
actor.RotationalVelocity = m_angularVelocity;
}
}
} }
/// <summary></summary> /// <summary></summary>