From cc64c318c7e6039f1278d138de9d64792b5e86f6 Mon Sep 17 00:00:00 2001 From: Lucas Dower Date: Thu, 21 Jul 2022 19:35:42 +0100 Subject: [PATCH] Fixed camera elevation epsilon being too large --- src/camera.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/camera.ts b/src/camera.ts index 6a8cae2..2d092d4 100644 --- a/src/camera.ts +++ b/src/camera.ts @@ -2,7 +2,7 @@ import { m4, v3 } from 'twgl.js'; import { MouseManager } from './mouse'; import { between, degreesToRadians, roundToNearest } from './math'; import { Renderer } from './renderer'; -import { SmoothVariable, SmoothVectorVariable } from './util'; +import { LOG, SmoothVariable, SmoothVectorVariable } from './util'; import { Vector3 } from './vector'; export class ArcballCamera { @@ -49,7 +49,7 @@ export class ArcballCamera { this.gl = Renderer.Get._gl; this.aspect = this.gl.canvas.width / this.gl.canvas.height; - this._elevation.setClamp(0.01, Math.PI - 0.01); + this._elevation.setClamp(0.001, Math.PI - 0.01); this._distance.setClamp(1.0, 100.0); this.setCameraMode('perspective');