Advertisement

Feeling good! Have 2 questions though...

Started by November 30, 2000 09:19 PM
9 comments, last by Jjesterr 23 years, 11 months ago
Almost forgot...
On the last line

a = (2 * pi) - arccos(d.z);

if you don''t use a lot of decimal places for pi you WILL!!! get rounding errors in the result! I recomend using

a = - arccos(d.z);

OpenGL will accept the negative rotation value so this won''t be a problem.
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]

This topic is closed to new replies.

Advertisement