rotate multiple points around a 3D point

M

Mike

Hi
actually I rotate the airplane in x (openGL) alike:

fx = pX + ((fx - pX) * cos(heading)) - ((pY - fy) * sin(heading))

pX is the pilotshead and heading the degrees. fx is the new x and fy
is 0.
seems ok also with circling camera. a bit sluggish but ok.

Now how should i add another source position z slightly down in z axis
without
messing it up? ( front and back of the plane ) Any STL function for
such rotations?
Many thanks
Michael
 
J

Jonathan Lee

Now how should i add another source position z slightly down in z axis
without messing it up?

I'd start by getting a textbook on linear algebra...
Any STL function for such rotations?

No, but OpenGL has one: glRotate. Try asking around in
comp.graphics.api.opengl

--Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top