From b1b64d73ba49e9e7d2e694dc4576d1c23ee0ab45 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Wed, 8 Apr 2015 11:41:52 +0200 Subject: [PATCH] Avoid the impact on the arrival of the move --- js/PointerCamera.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/PointerCamera.js b/js/PointerCamera.js index cf1eb16..7db9119 100644 --- a/js/PointerCamera.js +++ b/js/PointerCamera.js @@ -63,7 +63,7 @@ PointerCamera.prototype.update = function() { this.moving = false; // Update phi and theta so that return to reality does not hurt - var forward = Tools.diff(this.new_target, this.new_position); + var forward = Tools.diff(this.target, this.position); forward.normalize(); this.phi = Math.asin(forward.z);