Advertisement

calculating the coordinates of a cuboid after rotation in OpenGL.

Started by January 21, 2001 11:13 AM
-1 comments, last by cluballs 23 years, 10 months ago
Hi I would like to be able to find the vertices of a cuboid after it has been rotated. I have computed the vertices using trigonemtry when a cuboid is rotated by two axes, but I think using trig to compute the vertices of the cuboid after rotation about all three axes will be inefficient for several shapes in the scene. It would be useful if the coordinates of the shapes can be found in some way by using the transformation matrix of the object or by obtaining them from some buffer from opengl. Once the end points have been found they can be used for collision detection. If anyone has any ideas on how the coordinates can be found it would be very useful.

This topic is closed to new replies.

Advertisement