Rotate camera with fixed lookAt

I’m sorry, I didn’t quite understand what you said, can you please elaborate a little more?

I’ve been looking at TestPhysicsCar and the lookAt is being used like:


public void simpleUpdate(float tpf) {

cam.lookAt(vehicle.getWorldTranslation(), Vector3f.UNIT_Y);



Now, what I have in my app is:


public void rotateRight(){

Quaternion rightRotation = new Quaternion();

rightRotation.fromAngleAxis(FastMath.HALF_PI/20, Vector3f.UNIT_Y);

Vector3f rotationResult = rightRotation.mult(cam.getLocation());


cam.lookAt(new Vector3f(30,30,30), new Vector3f(0, 1, 0));



And what happens when I rotate to the right is exactly what’s described in the image posted earlier…

But you can move the cam with W-A-S-D in the test, the cam continues to look at the car, also when you go in a circle using W-A-S-D. The code you posted to move the cam will only work if the cam location was e.g. 1,0,0 on start btw.