diff options
author | Teravus Ovares | 2008-03-25 03:36:31 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-25 03:36:31 +0000 |
commit | a21112cceedfc93840b935feae4ad8725c4afb48 (patch) | |
tree | 43efce03cfc00168c04579e1cf3611eebde8ebde /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | Added monodevelop support to runprebuild.sh (diff) | |
download | opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.zip opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.gz opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.bz2 opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.xz |
* Adds llMoveToTarget and llStopMoveToTarget support to the ODEPlugin.
* It doesn't generate at_target events, because they don't exist yet in the script engine.
* The Tau is different, however, compatible with scripts I tested.
* Not perfect... but pretty good.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 82d67d4..73d901d 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -1097,13 +1097,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1097 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) | 1097 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) |
1098 | { | 1098 | { |
1099 | m_host.AddScriptLPS(1); | 1099 | m_host.AddScriptLPS(1); |
1100 | NotImplemented("llMoveToTarget"); | 1100 | m_host.MoveToTarget(new LLVector3((float)target.x, (float)target.y, (float)target.z), (float)tau); |
1101 | //NotImplemented("llMoveToTarget"); | ||
1101 | } | 1102 | } |
1102 | 1103 | ||
1103 | public void llStopMoveToTarget() | 1104 | public void llStopMoveToTarget() |
1104 | { | 1105 | { |
1105 | m_host.AddScriptLPS(1); | 1106 | m_host.AddScriptLPS(1); |
1106 | NotImplemented("llStopMoveToTarget"); | 1107 | m_host.StopMoveToTarget(); |
1108 | //NotImplemented("llStopMoveToTarget"); | ||
1107 | } | 1109 | } |
1108 | 1110 | ||
1109 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) | 1111 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) |