Thanks all

@Fab4
I don't care about obstacles
well, a piece of code will be nice
thanks for your time

actually I want the camera to follow the player (something like Prince of Persia camera)