aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-24 22:48:34 +0000
committerTeravus Ovares2008-03-24 22:48:34 +0000
commitdd6e6e7bdf3c7be8799fcf404a1e39df30f3e13d (patch)
tree54adaac374d9a2a9cce0d16bbc6c79b8153a1366 /OpenSim/Region/ScriptEngine
parentImplements llGetInventoryPermMask() (diff)
downloadopensim-SC_OLD-dd6e6e7bdf3c7be8799fcf404a1e39df30f3e13d.zip
opensim-SC_OLD-dd6e6e7bdf3c7be8799fcf404a1e39df30f3e13d.tar.gz
opensim-SC_OLD-dd6e6e7bdf3c7be8799fcf404a1e39df30f3e13d.tar.bz2
opensim-SC_OLD-dd6e6e7bdf3c7be8799fcf404a1e39df30f3e13d.tar.xz
* Added llApplyImpulse in the local frame.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 499445a..82d67d4 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -1110,20 +1110,22 @@ namespace OpenSim.Region.ScriptEngine.Common
1110 { 1110 {
1111 m_host.AddScriptLPS(1); 1111 m_host.AddScriptLPS(1);
1112 //No energy force yet 1112 //No energy force yet
1113
1114 if (force.x > 20000)
1115 force.x = 20000;
1116 if (force.y > 20000)
1117 force.y = 20000;
1118 if (force.z > 20000)
1119 force.z = 20000;
1120
1113 if (local == 1) 1121 if (local == 1)
1114 { 1122 {
1115 NotImplemented("llApplyImpulse Local Force"); 1123 m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), true);
1116 } 1124 }
1117 else 1125 else
1118 { 1126 {
1119 if (force.x > 20000) 1127
1120 force.x = 20000; 1128 m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z), false);
1121 if (force.y > 20000)
1122 force.y = 20000;
1123 if (force.z > 20000)
1124 force.z = 20000;
1125
1126 m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z));
1127 } 1129 }
1128 } 1130 }
1129 1131