aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2012-07-10 05:51:41 +0100
committerUbitUmarov2012-07-10 05:51:41 +0100
commitdf55de5b3d88e241f35217d5c08d02b921991513 (patch)
tree3aa8c4edc12746888b8d9405a737fa81b8610805 /OpenSim/Region
parentlet SOP AngularVelocity set physics actor angular velocity if it's (diff)
downloadopensim-SC_OLD-df55de5b3d88e241f35217d5c08d02b921991513.zip
opensim-SC_OLD-df55de5b3d88e241f35217d5c08d02b921991513.tar.gz
opensim-SC_OLD-df55de5b3d88e241f35217d5c08d02b921991513.tar.bz2
opensim-SC_OLD-df55de5b3d88e241f35217d5c08d02b921991513.tar.xz
lltargetomega efective spinrate now multiplied by gain ( need check )
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index cae7343..05bb161 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3804,6 +3804,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3804 3804
3805 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) 3805 protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
3806 { 3806 {
3807 spinrate *= gain;
3807 part.UpdateAngularVelocity(new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate))); 3808 part.UpdateAngularVelocity(new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)));
3808 } 3809 }
3809 3810