Hi,
I have a simple maze, made up of long, thin boxes to mark the 3D walls. I want to add collision detection so that your maze vehicle cannot go through the walls (obviously!)
However, i've been having some problems. I made the level editor OK and the maps now position fine in the game - but I cannot get collision to work.
Some boxes are rotated slightly to add diagonal coridors or awkard shaped corners - so its not just all left and rights! I used the YRotate command to do this - this is done before the main loop as during the gameplay, these walls do not rotate.
When adding collision or making a collision box, it seems that the detection isn't accounting for this rotation. In fact, I can sometimes hit a rotated wall in the position it would be without the rotation - and this is not good!
So how can I add collision to work and take into account my Yrotations of some walls? Anyone have any code or ideas on how to achieve this.
Thanks guys!