From 34c40a1e1ad2f49bf13050b689a7668291033891 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 20 Jul 2014 23:58:16 +0200 Subject: Remove some already commented lines --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 9526ba8..4cb65d4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -13242,29 +13242,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api Vector3 sitOffset = (Zrot(avatar.Rotation)) * (avatar.Appearance.AvatarHeight * 0.02638f *2.0f); pos -= sitOffset; - //if( sitPart != null) - // pos = sitPart.GetWorldPosition() + pos * sitPart.GetWorldRotation(); - res.Add(new LSL_Vector(pos.X,pos.Y,pos.Z)); break; case (int)ScriptBaseClass.PRIM_SIZE: - // as in llGetAgentSize above -// res.Add(new LSL_Vector(0.45f, 0.6f, avatar.Appearance.AvatarHeight)); Vector3 s = avatar.Appearance.AvatarSize; res.Add(new LSL_Vector(s.X, s.Y, s.Z)); break; case (int)ScriptBaseClass.PRIM_ROTATION: - //Quaternion rot = avatar.Rotation / llGetRootRotation(); LSL_Rotation rot = new LSL_Rotation(avatar.Rotation.X, avatar.Rotation.Y, avatar.Rotation.Z, avatar.Rotation.W) / llGetRootRotation(); - //if (sitPart != null) - //{ - // rot = sitPart.GetWorldRotation() * rot; // apply sit part world rotation - //} - //res.Add(new LSL_Rotation (rot.X, rot.Y, rot.Z, rot.W)); res.Add(rot); break; -- cgit v1.1