Sign in to follow this  
gamebasic

OpenGL Matrix Transformations

Recommended Posts

I use glTranslate/glRotate to position a 3D object at some position, and have created a bounding box for collision testing on that object (after the transformation with glTranslate/glRotate) I have to manually translate/rotate the box to where it will be after the objects transformation, right? Can someone please provide me of a brief example of how to accomplish this transformation? Any help is much appreciated, Thanks.

Share this post


Link to post
Share on other sites
So that we can give more useful advice, can you clarify what sort of bounding boxes you're using? That is, is it an oriented box, an axis-aligned box of sufficient size to fully contain the object in any orientation, or something else?

Share this post


Link to post
Share on other sites
It is currently an axis-aligned box; at least for the collision testing, but the box/collision will eventually test on any rotated angle as soon as I can figure out the transformations so that it matches with the 3d object.

I hope this helps, Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this