Issue Details (XML | Word | Printable)

Key: LIBOMV-401
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

TurnToward does not aim correctly while seated on a rotated prim

Created: 23/Oct/08 01:34 PM   Updated: 23/Oct/08 01:35 PM
Component/s: Agents
Affects Version/s: None
Fix Version/s: 0.6.0

Severity: Low
Environment: All


 Description  « Hide
TurnToward does not aim correctly while seated on a rotated prim. Apparently just subtracting the parent prim's rotation is not the answer. The following math seems to work:

Quaternion between = Vector3.RotationBetween(Vector3.UnitX, Vector3.Normalize(target - Client.Self.SimPosition));
Quaternion rot = between * (Quaternion.Identity / parentRot);



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dirty McLean added a comment - 23/Oct/08 01:35 PM
Fixed in r2306