I have an environment with lots of boxes and spheres. Now I want to restrict game movement to only use the arrow keys, not look up or down just move the camera forwards, backwards and rotate around the Y axis.
The left and right arrow keys do what I want with flyCam enabled but I want to replace KEY_W and KEY_S with KEY_UP and KEY_DOWN, somewhat like Wolfenstein where the player is always at same Y height, can rotate around Y and move forwards and backwards.
flyCam has to be disable to stop the default keyboard and mouse actions.
I have been able to do this with LWJGL projects directly by using the following to move forwards, backwards, left and right:
z += amount * Math.sin (Math.toRadians (rotationY + 90 * direction)); x += amount * Math.cos (Math.toRadians (rotationY + 90 * direction));
but I can not figure out how to navigate the camera with JMonkey.
grep-ed the jmonkeyplatform directory (-iRn) to see if I could find any reference to KEY_W or KEY_S and so figure out how it’s done but only binaries were returned.