From d785f96b70910de5cbcd47064afeb3fca01bfe9c Mon Sep 17 00:00:00 2001 From: ChenX Date: Mon, 18 May 2020 16:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GraphicsSystem/CameraUpdate.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/GraphicsSystem/CameraUpdate.ts b/src/GraphicsSystem/CameraUpdate.ts index 03d06cbfa..b4db475ed 100644 --- a/src/GraphicsSystem/CameraUpdate.ts +++ b/src/GraphicsSystem/CameraUpdate.ts @@ -165,13 +165,9 @@ export class CameraUpdate let viewAspectRatio = this.Aspect; // if (aspectRatio > viewAspectRatio) - { this.ViewHeight = size.x / viewAspectRatio; - } else - { this.ViewHeight = size.y; - } this.Update(); } @@ -187,10 +183,7 @@ export class CameraUpdate this.UpdateUp(); this.Update(); } - LookAtEvent(dir: Vector3) - { - - } + LookAtEvent(dir: Vector3) { } UpdateUp() {