aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
diff options
context:
space:
mode:
authoridb2009-04-17 19:39:37 +0000
committeridb2009-04-17 19:39:37 +0000
commitd9896ff71a46fb3a6216fadfb693af4860eb89a5 (patch)
treedb6f930d27335633fb248bbad6662fd0c97c4630 /OpenSim/Region/ScriptEngine/Shared/Helpers.cs
parent* Change inventory archiver module to use profile cache (diff)
downloadopensim-SC_OLD-d9896ff71a46fb3a6216fadfb693af4860eb89a5.zip
opensim-SC_OLD-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.gz
opensim-SC_OLD-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.bz2
opensim-SC_OLD-d9896ff71a46fb3a6216fadfb693af4860eb89a5.tar.xz
Correct detected rotation to return the same value as llGetRot in the object being detected.
Fixes Mantis #3467
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Helpers.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Helpers.cs2
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,