Advertisement

Bounding Boxes and glTranslate

Started by September 15, 2003 02:32 AM
5 comments, last by b3rs3rk 21 years, 5 months ago
i wrote a bounding boxes collision engine and it works perfecly, but now i have a small problem. after creating the box around an object, if i use glTranslate (or glRotate ) to move this object, his box remain in the same place as before,and so collision doesn''t work. How can I fix this?
Of curse, by also translating the bounding box. glTranslatef does not actually translate your object - it actually APPEARS to be translated.

So you have two possibilities
1- transform the bounding box in world space
2- transform potential colliders in object space

Just think - I had a similar problem in my projective texturing thingie.

Previously "Krohm"

Advertisement
thank you :D
listen, do u know some good tutorial on BSP trees?
Gametutorials
yes, but they use quake bps maps ... isn't there something else?

[edited by - b3rs3rk on September 15, 2003 11:14:48 AM]
I am very interested in everything is "something else" but looks like most people does not like go off road those days

Previously "Krohm"

Advertisement
quote:
Original post by b3rs3rk
yes, but they use quake bps maps ... isn''t there something else?

[edited by - b3rs3rk on September 15, 2003 11:14:48 AM]


Oh! I''m sorry, I misread your post...

You might want to search the Graphics programming and theory forum..

This topic is closed to new replies.

Advertisement