Nevermind, I just had to add and generate the AI grid so that the camera would collide and adapt to terrain height.