diff options
author | idb | 2009-04-17 19:39:37 +0000 |
---|---|---|
committer | idb | 2009-04-17 19:39:37 +0000 |
commit | d9896ff71a46fb3a6216fadfb693af4860eb89a5 (patch) | |
tree | db6f930d27335633fb248bbad6662fd0c97c4630 | |
parent | * Change inventory archiver module to use profile cache (diff) | |
download | opensim-SC-d9896ff71a46fb3a6216fadfb693af4860eb89a5.zip opensim-SC-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.gz opensim-SC-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.bz2 opensim-SC-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.xz |
Correct detected rotation to return the same value as llGetRot in the object being detected.
Fixes Mantis #3467
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Helpers.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs index df9c13a..eba2116 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs | |||
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
222 | part.AbsolutePosition.Y, | 222 | part.AbsolutePosition.Y, |
223 | part.AbsolutePosition.Z); | 223 | part.AbsolutePosition.Z); |
224 | 224 | ||
225 | Quaternion wr = part.GetWorldRotation(); | 225 | Quaternion wr = part.ParentGroup.GroupRotation; |
226 | Rotation = new LSL_Types.Quaternion(wr.X, wr.Y, wr.Z, wr.W); | 226 | Rotation = new LSL_Types.Quaternion(wr.X, wr.Y, wr.Z, wr.W); |
227 | 227 | ||
228 | Velocity = new LSL_Types.Vector3(part.Velocity.X, | 228 | Velocity = new LSL_Types.Vector3(part.Velocity.X, |