JME 2.0 collision question

Hello!

I'm new to JME and I'm trying to learn the basics of the engine following the examples of the Flag Rush tutorials…



I'd like to know how can I do to make my player not to go beyond the terrain I created…



I'm using a box as a player like the tutorial, and the terrain is the same… but the player can go anywhere even where there's no terrain, how can I limit the movement to the terrain, what collision commands do I need to use?



Thanks…