From 1c8955d1cd98166eacbc492d90878c344da8002b Mon Sep 17 00:00:00 2001 From: James Harrison Date: Sun, 26 Apr 2020 00:19:59 +0100 Subject: [PATCH] Moved camera a bit for ears --- src/model.ts | 5 +++-- src/viewer.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/model.ts b/src/model.ts index 79e1b46..1425c53 100644 --- a/src/model.ts +++ b/src/model.ts @@ -465,18 +465,19 @@ export class PlayerObject extends Group { this.skin = new SkinObject(skinTexture); this.skin.name = "skin"; + this.skin.position.y = -2 this.add(this.skin); this.cape = new CapeObject(capeTexture); this.cape.name = "cape"; this.cape.position.z = -2; - this.cape.position.y = -4; + this.cape.position.y = -6; this.cape.rotation.x = 10 * Math.PI / 180; this.add(this.cape); this.ears = new EarsObject(earTexture); this.ears.name = "ears"; - this.ears.position.y = 5.5; + this.ears.position.y = 3.5; this.add(this.ears); } } diff --git a/src/viewer.ts b/src/viewer.ts index 9e0d06b..12710fd 100644 --- a/src/viewer.ts +++ b/src/viewer.ts @@ -74,7 +74,7 @@ export class SkinViewer { // Use smaller fov to avoid distortion this.camera = new PerspectiveCamera(40); this.camera.position.y = 0; - this.camera.position.z = 65; + this.camera.position.z = 60; this.renderer = new WebGLRenderer({ alpha: true }); this.domElement.appendChild(this.renderer.domElement);