Group Abstract Group Abstract

Message Boards Message Boards

Help with operations with vectors and quaternions?(solved)

Posted 3 years ago
POSTED BY: J Decker
2 Replies
Posted 3 years ago

https://github.com/d3x0r/STFRPhysics/blob/master/Development.md (The Long story)

My rotation vector equation/function for rotating the vector was curve fitted to intrinsic rotations, that is for a frame, picking some direction within that frame, then using that axis of rotation to spin the frame relative to that; while matrix multiplication and quaternion multiplication are extrinsic multiplications, which are applied outside of the frame.

I think that the overall order of operations also gets inverted; that for a multi-part ragdoll body, moving the body itself in my system updates the body, which then multiplies outward on each subsequent joint, using each composite to multiply out to the ends.

I think maybe quaternions and matrices are often applied in the other direction? From the leaves of a graph to the trunk? (I think in reality there's usually changes in all joints, so caching partial results doesn't matter a lot; but in the latter case, if the limbs don't move, then they only have to be multiplied by the core again when the body updates ?

POSTED BY: J Decker
Posted 3 years ago

for 3 quaternions q,r,s; q**r**s is one the other is s**(r**q) got it. It is just reversing those terms...

POSTED BY: J Decker
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard