better update player position
working except if downslopes to out of heightmap. player can get stuck