diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 17 |
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) |