How do I setup a matrix for my joints?
Posted: Sun Nov 12, 2023 10:18 pm
I have asked some similiar questions to this but this is more specific to how to setup a matrix after I have the position and orientation calculated.
So I have position of each joint and I have the direction that joint should be facing in. When I output the positions of each joint before adding keys, they are correct. Once I add a single key the joints position seem to completely change. I just added a key with no rotation and the joints completely change.
Is there a simpler way built-in to irrlicht for setting up the matrix if I have a vector for each bone position and a quaternion for the direction that bone is rotated to?
So I have position of each joint and I have the direction that joint should be facing in. When I output the positions of each joint before adding keys, they are correct. Once I add a single key the joints position seem to completely change. I just added a key with no rotation and the joints completely change.
Is there a simpler way built-in to irrlicht for setting up the matrix if I have a vector for each bone position and a quaternion for the direction that bone is rotated to?