diff options
author | UbitUmarov | 2012-07-10 05:37:41 +0100 |
---|---|---|
committer | UbitUmarov | 2012-07-10 05:37:41 +0100 |
commit | acec9da95c2faa861ee37cc5e820118fc4649c80 (patch) | |
tree | 64102cdf14f97e77518ef29f63a4309819f38892 | |
parent | more work on llSetAngularVelocity() (diff) | |
download | opensim-SC-acec9da95c2faa861ee37cc5e820118fc4649c80.zip opensim-SC-acec9da95c2faa861ee37cc5e820118fc4649c80.tar.gz opensim-SC-acec9da95c2faa861ee37cc5e820118fc4649c80.tar.bz2 opensim-SC-acec9da95c2faa861ee37cc5e820118fc4649c80.tar.xz |
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
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 0f44823..16a8588 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -959,7 +959,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
959 | } | 959 | } |
960 | return m_angularVelocity; | 960 | return m_angularVelocity; |
961 | } | 961 | } |
962 | set { m_angularVelocity = value; } | 962 | set |
963 | { | ||
964 | m_angularVelocity = value; | ||
965 | PhysicsActor actor = PhysActor; | ||
966 | if ((actor != null) && actor.IsPhysical && ParentGroup.RootPart == this && VehicleType == (int)Vehicle.TYPE_NONE) | ||
967 | { | ||
968 | actor.RotationalVelocity = m_angularVelocity; | ||
969 | } | ||
970 | } | ||
963 | } | 971 | } |
964 | 972 | ||
965 | /// <summary></summary> | 973 | /// <summary></summary> |