From bc3d0217af85e61f26b9dd68d60093b766e9d71d Mon Sep 17 00:00:00 2001 From: alondria Date: Sun, 3 Feb 2008 16:42:43 +0000 Subject: Added llRot2Fwd, llRot2Left, and llRot2Up as well as explicit vector->string casting. (Thanks to dalien on informing me how easy the math was for these). --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 9d228fa..3d5f106 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -245,17 +245,17 @@ namespace OpenSim.Region.ScriptEngine.Common public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { - return new LSL_Types.Vector3(); + return (new LSL_Types.Vector3(1,0,0) * r); } public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { - return new LSL_Types.Vector3(); + return (new LSL_Types.Vector3(0, 1, 0) * r); } public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { - return new LSL_Types.Vector3(); + return (new LSL_Types.Vector3(0, 0, 1) * r); } public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 a, LSL_Types.Vector3 b) { -- cgit v1.1