Hi!
I have made a terrain and I have made the collision but obviously if I go out of the Terrain, the FPS go under. I would like to limit the movement of the FPS ONLY enter of the Terrain (so the FPS must stop the walking if it collides with borders). How can I do this?
I have thought that:
I create 4 rectangles (one for each border); if the FPS collides with the rectangle, don't walk.
Thank you
(I'm italian, sorry for my english)