Correct detected rotation to return the same value as llGetRot in the object being detected.
Fixes Mantis #34670.6.5-rc1
parent
bd1b478f2c
commit
d9896ff71a
|
@ -222,7 +222,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
part.AbsolutePosition.Y,
|
part.AbsolutePosition.Y,
|
||||||
part.AbsolutePosition.Z);
|
part.AbsolutePosition.Z);
|
||||||
|
|
||||||
Quaternion wr = part.GetWorldRotation();
|
Quaternion wr = part.ParentGroup.GroupRotation;
|
||||||
Rotation = new LSL_Types.Quaternion(wr.X, wr.Y, wr.Z, wr.W);
|
Rotation = new LSL_Types.Quaternion(wr.X, wr.Y, wr.Z, wr.W);
|
||||||
|
|
||||||
Velocity = new LSL_Types.Vector3(part.Velocity.X,
|
Velocity = new LSL_Types.Vector3(part.Velocity.X,
|
||||||
|
|
Loading…
Reference in New Issue