Collision Terrain

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
irrProgrammer
Posts: 1
Joined: Mon May 26, 2014 11:50 am

Collision Terrain

Post by irrProgrammer »

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)
Post Reply