mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Correct detected rotation to return the same value as llGetRot in the object being detected.
Fixes Mantis #3467
This commit is contained in:
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
part.AbsolutePosition.Y,
|
||||
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);
|
||||
|
||||
Velocity = new LSL_Types.Vector3(part.Velocity.X,
|
||||
|
||||
Reference in New Issue
Block a user