Set angular velocity in physics actor in SceneObjectPart.AngularVelocity setter. Enables llSetAngularVelocity()

inv-download
dahlia 2015-02-05 14:29:51 -08:00
parent 95a0f0d47b
commit ee810a2cb5
1 changed files with 7 additions and 1 deletions

View File

@ -957,7 +957,13 @@ namespace OpenSim.Region.Framework.Scenes
}
return m_angularVelocity;
}
set { m_angularVelocity = value; }
set
{
m_angularVelocity = value;
PhysicsActor actor = PhysActor;
if ((actor != null) && actor.IsPhysical)
actor.RotationalVelocity = m_angularVelocity;
}
}
/// <summary></summary>