pull/1035/head
ChenX 4 years ago
parent dbb979f1d2
commit d785f96b70

@ -165,13 +165,9 @@ export class CameraUpdate
let viewAspectRatio = this.Aspect; let viewAspectRatio = this.Aspect;
// //
if (aspectRatio > viewAspectRatio) if (aspectRatio > viewAspectRatio)
{
this.ViewHeight = size.x / viewAspectRatio; this.ViewHeight = size.x / viewAspectRatio;
}
else else
{
this.ViewHeight = size.y; this.ViewHeight = size.y;
}
this.Update(); this.Update();
} }
@ -187,10 +183,7 @@ export class CameraUpdate
this.UpdateUp(); this.UpdateUp();
this.Update(); this.Update();
} }
LookAtEvent(dir: Vector3) LookAtEvent(dir: Vector3) { }
{
}
UpdateUp() UpdateUp()
{ {

Loading…
Cancel
Save