Camera do not rotates vertically as expected

Hi,



Scene has character and camera which looks at character with offset.So behaviour of camera is strange to me. It rotates horizontally without problem, but it seems that camera has some vertical limitation. I cannot rotate camera to bottom.

I have following code:



[java]

flyCam.setEnabled(false);

chaseCam = new ChaseCamera(cam, model, inputManager);

model_p = new Vector3f(0,5,0);

chaseCam.setDragToRotate(false);

chaseCam.setInvertVerticalAxis(true);

chaseCam.setLookAtOffset(model_p);

[/java]





http://img94.imageshack.us/img94/3853/start07.jpg

use setMinVerticalRotation(float minHeight); set it to something negative

1 Like

Great! Thanks