Hi,
I have a scene where a Cam is positioned at one specific point. Now there is a object in the scene and I want the cam to look at it. This is the Code I used:
[java]Camera cam = new Camera(800,600);
cam.setLocation(sceneLoader.getPlayerPos());
cam.setDirection(sceneLoader.getWeißerInnenKreis());[/java]
Now the problem is that the cam does not look at the object but at a point that is situated ca. 45 degrees to the left of the object.
Has someone an idea how that Problem can be solved?
Thanks in advance
1 Like
try the cam.lookAt method.