Hey Guys,
I’m having a problem with my chaseCam - the game extends SimpleApplication. I want that the chaseCam moves with the character (that’s fine). Moreover i want that the user can rotate this chaseCam with his mouse (no drag). So I used the “setDragToRotate” method. The documentation is the following: http://hub.jmonkeyengine.org/javadoc/com/jme3/input/ChaseCamera.html#setDragToRotate(boolean)
My problem is that the cursor is not invisible and I can only rotate until the mouse cursor reaches the borders of my screen. So the user can’t rotate 360 degrees. What I have done wrong?! Thank’s for your help!
[java] private void loadCamera() {
flyCam.setEnabled(false);
chaseCam = new ChaseCamera(cam, playerModel, inputManager);
chaseCam.setDefaultDistance(15f);
chaseCam.setDragToRotate(false);
}[/java]
try disabling the FlyCamAppState instead i.e
[java]public Constructor() {
super(new StatsAppState()); // put the appstates you want here
}[/java]