Avoid the impact on the arrival of the move

This commit is contained in:
Thomas FORGIONE 2015-04-08 11:41:52 +02:00
parent 93549bc434
commit b1b64d73ba
1 changed files with 1 additions and 1 deletions

View File

@ -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);