Cliffhanger ;-) Dont fall of the earth

Hi there,

short question: I created a terrain and a physics shape for my player character; Now I fall down the earth as soon as I leave the map.

How to avoid? Should I us the terrain size and if x > size || x < size*-1 or are there other boundaries?

Thanks for a short advice. jME3 really rocks :slight_smile:

Yes, just do a simple position check as in your example and then stop user input in that direction or something.

Okay, so my solution is already optimum optimorum. Thanks for the quick reply!