aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-17 14:59:05 +0000
committerTeravus Ovares2008-01-17 14:59:05 +0000
commit18c959df12983256d73240a86fa0bad12c4e36ce (patch)
treed85ef34d3196461f8d3dd0ae653b37912f098a7e /OpenSim/Region/ScriptEngine
parent* added ForEachPart helper (diff)
downloadopensim-SC_OLD-18c959df12983256d73240a86fa0bad12c4e36ce.zip
opensim-SC_OLD-18c959df12983256d73240a86fa0bad12c4e36ce.tar.gz
opensim-SC_OLD-18c959df12983256d73240a86fa0bad12c4e36ce.tar.bz2
opensim-SC_OLD-18c959df12983256d73240a86fa0bad12c4e36ce.tar.xz
* Added llApplyImpulse in the global frame. The object must be physical before this'll do anything. Be careful with this function as it's easy to loose prim.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 1400617..c196322 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -792,7 +792,22 @@ namespace OpenSim.Region.ScriptEngine.Common
792 792
793 public void llApplyImpulse(LSL_Types.Vector3 force, int local) 793 public void llApplyImpulse(LSL_Types.Vector3 force, int local)
794 { 794 {
795 NotImplemented("llApplyImpulse"); 795 //No energy force yet
796 if (local == 1)
797 {
798 NotImplemented("llApplyImpulse Local Force");
799 }
800 else
801 {
802 if (force.x > 20000)
803 force.x = 20000;
804 if (force.y > 20000)
805 force.y = 20000;
806 if (force.z > 20000)
807 force.z = 20000;
808
809 m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z));
810 }
796 } 811 }
797 812
798 public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) 813 public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)