aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2012-07-10 05:37:41 +0100
committerUbitUmarov2012-07-10 05:37:41 +0100
commitacec9da95c2faa861ee37cc5e820118fc4649c80 (patch)
tree64102cdf14f97e77518ef29f63a4309819f38892
parentmore work on llSetAngularVelocity() (diff)
downloadopensim-SC_OLD-acec9da95c2faa861ee37cc5e820118fc4649c80.zip
opensim-SC_OLD-acec9da95c2faa861ee37cc5e820118fc4649c80.tar.gz
opensim-SC_OLD-acec9da95c2faa861ee37cc5e820118fc4649c80.tar.bz2
opensim-SC_OLD-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.cs10
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>