diff options
author | Justin Clark-Casey (justincc) | 2013-03-14 21:23:48 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-03-14 21:23:48 +0000 |
commit | e9c394fb4ed56ffb931a0161b8c6fdc929b38058 (patch) | |
tree | c270d96a638974cdf6341006a9430c04922467ab /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Merge branch 'master' of ssh://opensim/var/git/opensim (diff) | |
download | opensim-SC_OLD-e9c394fb4ed56ffb931a0161b8c6fdc929b38058.zip opensim-SC_OLD-e9c394fb4ed56ffb931a0161b8c6fdc929b38058.tar.gz opensim-SC_OLD-e9c394fb4ed56ffb931a0161b8c6fdc929b38058.tar.bz2 opensim-SC_OLD-e9c394fb4ed56ffb931a0161b8c6fdc929b38058.tar.xz |
Make llGetObjectDetails() return the correct world rotation for a sitting avatar
This addresses http://opensimulator.org/mantis/view.php?id=6567
This creates a ScenePresence.GetWorldRotation() with the same semantics as SOP.GetWorldRotation()
SP.Rotation can't be used since it's relative to the sat upon prim if the avatar is sitting.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index dd7ee24..47f8758 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -10518,7 +10518,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10518 | ret.Add(new LSL_Vector((double)av.AbsolutePosition.X, (double)av.AbsolutePosition.Y, (double)av.AbsolutePosition.Z)); | 10518 | ret.Add(new LSL_Vector((double)av.AbsolutePosition.X, (double)av.AbsolutePosition.Y, (double)av.AbsolutePosition.Z)); |
10519 | break; | 10519 | break; |
10520 | case ScriptBaseClass.OBJECT_ROT: | 10520 | case ScriptBaseClass.OBJECT_ROT: |
10521 | ret.Add(new LSL_Rotation((double)av.Rotation.X, (double)av.Rotation.Y, (double)av.Rotation.Z, (double)av.Rotation.W)); | 10521 | ret.Add(new LSL_Rotation(av.GetWorldRotation())); |
10522 | break; | 10522 | break; |
10523 | case ScriptBaseClass.OBJECT_VELOCITY: | 10523 | case ScriptBaseClass.OBJECT_VELOCITY: |
10524 | ret.Add(new LSL_Vector(av.Velocity.X, av.Velocity.Y, av.Velocity.Z)); | 10524 | ret.Add(new LSL_Vector(av.Velocity.X, av.Velocity.Y, av.Velocity.Z)); |