For some reason, the methods alters the camera.up value, which should ideally be (0, 1, 0).
What is the solution? Just manually set the direction yourself like so:-
tmpVector.set(targetPosition).sub(camera.position).nor();I've no idea why the lookAt() method does what it does.
player.camera.direction.set(tmpVector);
player.camera.update();
No comments:
Post a Comment