This is my code for the c_move part. if(key_cuu) c_move (player, nullvector, vector((50) * time_step, 20, 0.1), IGNORE_PASSABLE | GLIDE); Then once I change my pan it keeps going in the same direction not in the the new direction I just turned towards.