Original Post
Hi! I'm making my first 3D game. I like to restrain the player in a certain area. What I'm doing right now is:
if(playerPosZ < 6.0 && playerPosZ > -6.0) { move() }
...
The problem is, that you begin to glide when you move towards a wall in an angle. My friend say this is a common problem, but still I cant find any information about it neither here nor using Google. Daniel Lännström