I have drawn an object using polygons, and a bouding box, so I can detect if it hits an edge. The boudning box is just 4 vertecies.
As the object animates, I would like to test if one of the verticies comes into contact with the edge of my window, and then gets it to turn around.
How can I keep track of these verticies? I am under the impression the values change as it moves, is this correct? How can I keep track of these variables to test if it does hit an edge?
Thanks