Hi,
I intend to work this out on my own, but I wanted to let you know in case someone was already working on it, or in case you can tell me if I’m wrong. The bug is with ChaseCamera:
At minDistance the minVerticalRotation value no longer works. maxVerticalRotation is enforced no matter how zoomed in or out I am. minVerticalRotation works OK until I zoom all the way in. No matter what I set minDistance to, the behavior is the same.
I’m kind of overwhelmed with tasks right now, but I’ll dig into the ChaseCamera code myself and fix it within the next few weeks (and provide a patch), but again, I don’t want to duplicate effort, so I wanted to raise the issue here. Here’s a sample setup for ChaseCamera the exhibits the problem.
[java]
chaseCam = new ChaseCamera(cam, characterNode, inputManager);
chaseCam.setDefaultVerticalRotation(FastMath.PI / 4);
chaseCam.setMaxVerticalRotation(FastMath.PI / 4);
chaseCam.setMinVerticalRotation(FastMath.PI / 4);
chaseCam.setDefaultDistance(30);
chaseCam.setMaxDistance(40);
chaseCam.setMinDistance(25);
chaseCam.setChasingSensitivity(1);
chaseCam.setInvertVerticalAxis(true);
[/java]
Thanks!
P.S. I’m in love with JME3 - I can’t believe how much of the trivial work it does for me and how productive this makes me! Great job and thanks to all the devs!