How to rotate one object as a parent of another object?
Mar 06 2018 | 4:55 pm
My question is related to quaternions. I have values that control a [jit.anim.node], and I'm trying to find a way to adjust the initial position of that rotation, since the rotation is just an imaginary rotation that doesn't have an origin.
I would need to tell the object where the origin is, which will be always different, it dependes where the first values of the quaternion started to send its position. The idea is to first define its inverse-quaternion as the origin, and then rotates the parent object which that quaternion.
I have an idea of the inverse quaternion but in jitter I don't find how to reset the origin position of a parent object. I can imagine that if I have an invisible object that is the parent I can then rotate that parent to fix the child rotation in relation to the origin.