Avoid the impact on the arrival of the move
This commit is contained in:
parent
93549bc434
commit
b1b64d73ba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue