Bounding Boxes and glTranslate
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.
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"
yes, but they use quake bps maps ... isn't there something else?
[edited by - b3rs3rk on September 15, 2003 11:14:48 AM]
[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"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement