I can get to a certain level of precision with these bounding boxes (Axis Aligned Bounding Boxes for those who care) but when it comes to the robot, I need an Oriented Bounding Box. Only trouble is finding the equations to calculate it. Okay, so there’s also the whole XNA thing of having to build those AABBs by hand, but it works okay for now.
That white box containing all the other boxes represents the limits. The robot’s bounding box (yellow) cannot go outside of that white box. The red boxes on the other hand are the areas where the robot cannot go into.
MY BAD: I wrote this post last week but it seems that I didn’t publish it…so yeah, uh, sorry about that.