I have an object moving in a 3D space. This space has three coordinate axes and these are global axes, and space is the global reference frame. The object also has three coordinate axes and these can be in any orientation in respect to the global frame as the object is rotated.
Q: If I apply a velocity vector in respect to the local frame, how can I find the equivalent vector in the global frame?
Given:
A quaternion describing the rotation of the object in 3D space.
A vector position for the object in space.
A vector velocity that I want to add to the position over time.
I have a feeling the answer is really simple and I'm just thinking of it the wrong way. Thanks for your help.
Your problem can be reduced to a few easy steps:
Your quaternion is almost certainly written in terms of the global basis, so you can proceed as follows: