diff options
author | Melanie Thielker | 2014-07-20 23:58:16 +0200 |
---|---|---|
committer | Melanie Thielker | 2014-07-20 23:58:16 +0200 |
commit | 34c40a1e1ad2f49bf13050b689a7668291033891 (patch) | |
tree | 3b2b1c338e659edb746c10bb77931ef1056cb2b9 /OpenSim/Region | |
parent | Fix LSL portions of sit positioning (diff) | |
download | opensim-SC-34c40a1e1ad2f49bf13050b689a7668291033891.zip opensim-SC-34c40a1e1ad2f49bf13050b689a7668291033891.tar.gz opensim-SC-34c40a1e1ad2f49bf13050b689a7668291033891.tar.bz2 opensim-SC-34c40a1e1ad2f49bf13050b689a7668291033891.tar.xz |
Remove some already commented lines
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 |
1 files changed, 0 insertions, 11 deletions
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 | |||
13242 | Vector3 sitOffset = (Zrot(avatar.Rotation)) * (avatar.Appearance.AvatarHeight * 0.02638f *2.0f); | 13242 | Vector3 sitOffset = (Zrot(avatar.Rotation)) * (avatar.Appearance.AvatarHeight * 0.02638f *2.0f); |
13243 | pos -= sitOffset; | 13243 | pos -= sitOffset; |
13244 | 13244 | ||
13245 | //if( sitPart != null) | ||
13246 | // pos = sitPart.GetWorldPosition() + pos * sitPart.GetWorldRotation(); | ||
13247 | |||
13248 | res.Add(new LSL_Vector(pos.X,pos.Y,pos.Z)); | 13245 | res.Add(new LSL_Vector(pos.X,pos.Y,pos.Z)); |
13249 | break; | 13246 | break; |
13250 | 13247 | ||
13251 | case (int)ScriptBaseClass.PRIM_SIZE: | 13248 | case (int)ScriptBaseClass.PRIM_SIZE: |
13252 | // as in llGetAgentSize above | ||
13253 | // res.Add(new LSL_Vector(0.45f, 0.6f, avatar.Appearance.AvatarHeight)); | ||
13254 | Vector3 s = avatar.Appearance.AvatarSize; | 13249 | Vector3 s = avatar.Appearance.AvatarSize; |
13255 | res.Add(new LSL_Vector(s.X, s.Y, s.Z)); | 13250 | res.Add(new LSL_Vector(s.X, s.Y, s.Z)); |
13256 | 13251 | ||
13257 | break; | 13252 | break; |
13258 | 13253 | ||
13259 | case (int)ScriptBaseClass.PRIM_ROTATION: | 13254 | case (int)ScriptBaseClass.PRIM_ROTATION: |
13260 | //Quaternion rot = avatar.Rotation / llGetRootRotation(); | ||
13261 | LSL_Rotation rot = new LSL_Rotation(avatar.Rotation.X, avatar.Rotation.Y, avatar.Rotation.Z, avatar.Rotation.W) / llGetRootRotation(); | 13255 | LSL_Rotation rot = new LSL_Rotation(avatar.Rotation.X, avatar.Rotation.Y, avatar.Rotation.Z, avatar.Rotation.W) / llGetRootRotation(); |
13262 | //if (sitPart != null) | ||
13263 | //{ | ||
13264 | // rot = sitPart.GetWorldRotation() * rot; // apply sit part world rotation | ||
13265 | //} | ||
13266 | 13256 | ||
13267 | //res.Add(new LSL_Rotation (rot.X, rot.Y, rot.Z, rot.W)); | ||
13268 | res.Add(rot); | 13257 | res.Add(rot); |
13269 | break; | 13258 | break; |
13270 | 13259 | ||