(SOLVED) ChaseCamera problem

chaseCam.setDragToRotate(false);

Using this method does not work correctly

Look video

Not locking the mouse The cursor is also visible

So the camera still drags?

Or is it that you just don’t want the mouse cursor visible anymore?

These are two separate things. The mouse cursor can be turned on/off. That’s one thing. The totally unrelated ChaseCamera can be set to drag or not drag. That’s a totally separate thing.

1 Like

I want to make the mouse invisible
The cursor is locked to the window
What method should I use
Whether relevant literature is available
Thank you for your reply

https://javadoc.jmonkeyengine.org/v3.5.2-stable/com/jme3/input/InputManager.html#setCursorVisible-boolean-

2 Likes

Thank you for your reply
I’ve used the wrong InputManager. SetCursorVisible
Put InputManager.SetCursorVisible in the Update method and it works