From a21112cceedfc93840b935feae4ad8725c4afb48 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 25 Mar 2008 03:36:31 +0000 Subject: * 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. --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') 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 public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { m_host.AddScriptLPS(1); - NotImplemented("llMoveToTarget"); + m_host.MoveToTarget(new LLVector3((float)target.x, (float)target.y, (float)target.z), (float)tau); + //NotImplemented("llMoveToTarget"); } public void llStopMoveToTarget() { m_host.AddScriptLPS(1); - NotImplemented("llStopMoveToTarget"); + m_host.StopMoveToTarget(); + //NotImplemented("llStopMoveToTarget"); } public void llApplyImpulse(LSL_Types.Vector3 force, int local) -- cgit v1.1