Quads facing at the camera

Started by
23 comments, last by YartZ 22 years, 8 months ago
Try something like:


float m[16],angle;

glGetFloatv(GL_MODELVIEW_MATRIX,m);

angle = atan2(m[12],m[14])*180.0/M_PI;

glRotate(angle, 0.0, 1.0, 0.0);


You might try swapping m[12] and m[14], or inverting, or adding 90/180/270 to the angle value...

I just made this up off the top of my head, so maybe it''s totally wrong...
Advertisement
check out my new class on my new page. =)


Never underestimante the power of stupid people in large groups.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Julio, can''t download that on your page. Link is broken :I

-- YartZ
hmm, I''ll check that out.


Never underestimante the power of stupid people in large groups.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
seems to work ok for me. I''ll e-mail you the file.


Never underestimante the power of stupid people in large groups.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

This topic is closed to new replies.

Advertisement