Chasecam and MinVerticalRotation

MinVerticalRotation stops working when zooming in and reaching the minDistance of the chasecam. As soon as I am fully zoomed in I can rotate 360° on the vertical axis. It isn’t explicitly attached to anything, so it is looking at the world origin.



My code:

[java] ChaseCamera chaseCam = new ChaseCamera(camera, map, inputManager);

chaseCam.setToggleRotationTrigger(new MouseButtonTrigger(MouseInput.BUTTON_LEFT));

chaseCam.setSmoothMotion(true);

chaseCam.setMaxDistance(100.0f);

chaseCam.setMinDistance(10.0f);

chaseCam.setMinVerticalRotation(5FastMath.DEG_TO_RAD);

chaseCam.setDefaultHorizontalRotation(FastMath.DEG_TO_RAD
90);[/java]

Yeah, it’s supposed to be a feature…



It allow the cam to act like a fist person cam when you zoom completely in, but it’s assuming the mindistance is near 0.



But in you case it’s just weird…I guess I should add a boolean to disable this behavior…

While you’re at it, why not implement an “always” 360 degrees rotation? :smiley: