From: Todd J. F. <to...@in...> - 2006-04-22 15:21:38
|
I was trying to use gmtl::makeZRot, and it was giving me the same result no matter what matrix it was given. To resolve, I changed the first line of the makeZRot function to read: const gmtl::Vec<DATA_TYPE, 3> forward_point(1.0f, 0.0f, 0.0f); // +X The problem was that the forward_point was originally a vector along the Z-axis, so rotation about that axis couldn't be measured using the logic in that function. -Todd -- Todd J. Furlong President / Principal Engineer Inv3rsion, LLC 888-588-0573 x81 603-759-9035 mobile 603-584-0454 fax http://www.inv3rsion.com |