Issue Details (XML | Word | Printable)

Key: LIBOMV-400
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Dirty McLean
Reporter: Dirty McLean
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
libopenmetaverse

Client.Self.SimPosition missing vector transformation for rotated seat prims

Created: 21/Oct/08 02:08 PM   Updated: 21/Oct/08 02:12 PM
Component/s: Avatars, Objects
Affects Version/s: None
Fix Version/s: 0.6.0

Severity: Low
Environment: All


 Description  « Hide
To get the .SimPosition of our seated agent, we must add the local offset position of the avatar to the position of the prim in the simulator. Simply adding these two values does not take into account a rotated seat prim, in which case we need to transform the avatar's offset vector by the rotation of the parent prim.

ie:
parent.Position + relativePosition;

becomes:
parent.Position + Vector3.Transform(relativePosition, Matrix4.CreateFromQuaternion(parent.Rotation));



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dirty McLean added a comment - 21/Oct/08 02:12 PM
Resolved in r2305