Hi Guys
Im sure i must be doing something stupid but i can’t figure out what.
so i wanted to use a free mouse cursor in order to pick objects freely on screen
[java]
flyCam.setEnabled(false);
chaseCamera = new ChaseCamera(cam, player, inputManager);
chaseCamera.setSmoothMotion(true);
chaseCamera.setRotationSensitivity(5f);
[/java]
so i want the camera to follow the avatar. and i can use the mouse to pick things on screen
However when i click anywhere on screen the cursor will flip along the x axis
why doest this happen?
how do i stop it?
I get the same behaviour when i do
[java]
flyCam.setDragToRotate(true);
[/java]
in the hello picking tutorial
@dharshanar I’m having this same issue now also… the mouse cursor position flipping when you click. Did you ever find anyway around it? Are you on a Mac? I am.
Hey Yep i found the issue, yep I’m on mac (i don’t think its OS dependant), Its pretty simple
If you follow the examples in the tutorial
you end up calling
[java]
public SimpleApplication() {
this( new StatsAppState(), new FlyCamAppState(), new DebugKeysAppState() );
}
[/java]
And the flipping behaviour you get by default. So you can call
chaseCamera.setInvertVerticalAxis(boolean invertYaxis)
Or what i ended up doing was calling
[java]public LostVictory() {
super( new StatsAppState(), new DebugKeysAppState() );
}[/java]
end setting up my own cam app state with my own controls. Hope that helps!