Browse Source

fiexed target property overload

David Catuhe 8 years ago
parent
commit
b63985731d
2 changed files with 3425 additions and 3411 deletions
  1. 3421 3407
      dist/preview release/babylon.d.ts
  2. 4 4
      src/Cameras/babylon.followCamera.ts

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


+ 4 - 4
src/Cameras/babylon.followCamera.ts

@@ -16,12 +16,12 @@
         public maxCameraSpeed: number = 20;
 
         @serializeAsMeshReference("lockedTargetId")
-        public target: AbstractMesh;
+        public lockedTarget: AbstractMesh;
 
-        constructor(name: string, position: Vector3, scene: Scene, target?: AbstractMesh) {
+        constructor(name: string, position: Vector3, scene: Scene, lockedTarget?: AbstractMesh) {
             super(name, position, scene);
 
-            this.target = target;
+            this.lockedTarget = lockedTarget;
         }
 
         private getRadians(degrees): number {
@@ -69,7 +69,7 @@
 
         public _checkInputs(): void {
             super._checkInputs();
-            this.follow(this.target);
+            this.follow(this.lockedTarget);
         }
 
         public getTypeName(): string {