Browse Source

Better constrcutor for ArcRotateCamera

David Catuhe 8 years ago
parent
commit
af492827fa

File diff suppressed because it is too large
+ 3614 - 3614
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 1
dist/preview release/babylon.max.js

@@ -31196,7 +31196,7 @@ var BABYLON;
                 _this._target = BABYLON.Vector3.Zero();
                 _this._target = BABYLON.Vector3.Zero();
             }
             }
             else {
             else {
-                _this._target = target;
+                _this.setTarget(target);
             }
             }
             _this.alpha = alpha;
             _this.alpha = alpha;
             _this.beta = beta;
             _this.beta = beta;

File diff suppressed because it is too large
+ 3614 - 3614
dist/preview release/babylon.module.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.worker.js


+ 1 - 1
src/Cameras/babylon.arcRotateCamera.ts

@@ -213,7 +213,7 @@ module BABYLON {
             if (!target) {
             if (!target) {
                 this._target = Vector3.Zero();
                 this._target = Vector3.Zero();
             } else {
             } else {
-                this._target = target;
+                this.setTarget(target);
             }
             }
 
 
             this.alpha = alpha;
             this.alpha = alpha;