/** Recalculates the direction of the camera to look at the point (x, y, z). * @param target the point to look at */ public void lookAt (Vector3 target) { lookAt(target.x, target.y, target.z); }
/** Recalculates the direction of the camera to look at the point (x, y, z). * @param target the point to look at */ public void lookAt (Vector3 target) { lookAt(target.x, target.y, target.z); }
/** Recalculates the direction of the camera to look at the point (x, y, z). * @param target the point to look at */ public void lookAt (Vector3 target) { lookAt(target.x, target.y, target.z); }
Camera cam = world.getCamera(); cam.moveCamera(Camera.CAMERA_MOVEOUT, 50); cam.lookAt(cube.getTransformedCenter());
public void setupCamera(float[] up, float[] lookAt) { camera.up.set(-up[0], up[2], up[1]); forwardVector.x = -lookAt[0]; forwardVector.y = lookAt[2]; forwardVector.z = lookAt[1]; camera.lookAt(forwardVector); camera.update(); ray = camera.getPickRay(w / 2, h / 2); }