Combining Rotation Matricies
Posted on 2000-04-07
This question is probably for Mike Lischke only but if anyone has any idea let me know. Ta
I would like to combine a rotation matrix to do one rotation in one direction then another rotation in another direction. The problem im having is that in Mike's "opener" code, it rotates an object (to translate from .3ds) to a certain position. If I want to rotate it again in a diferent direction is combines the previous rotation and gives me strange results. So I need to do one rotation at the very start (say on the X) then all rotations after that on the Y. Is that impossible?
I found a function called QuaternionMultiply in geomtry.pas which sounds like it should do the trick but I haven't a clue how to use it.
I really hope the above made sense.