瀏覽代碼

fiexed target property overload

David Catuhe 8 年之前
父節點
當前提交
b63985731d
共有 2 個文件被更改,包括 3425 次插入3411 次删除
  1. 3421 3407
      dist/preview release/babylon.d.ts
  2. 4 4
      src/Cameras/babylon.followCamera.ts

文件差異過大導致無法顯示
+ 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 {