Moved camera a bit for ears
This commit is contained in:
parent
940f0a7083
commit
1c8955d1cd
|
@ -465,18 +465,19 @@ export class PlayerObject extends Group {
|
||||||
|
|
||||||
this.skin = new SkinObject(skinTexture);
|
this.skin = new SkinObject(skinTexture);
|
||||||
this.skin.name = "skin";
|
this.skin.name = "skin";
|
||||||
|
this.skin.position.y = -2
|
||||||
this.add(this.skin);
|
this.add(this.skin);
|
||||||
|
|
||||||
this.cape = new CapeObject(capeTexture);
|
this.cape = new CapeObject(capeTexture);
|
||||||
this.cape.name = "cape";
|
this.cape.name = "cape";
|
||||||
this.cape.position.z = -2;
|
this.cape.position.z = -2;
|
||||||
this.cape.position.y = -4;
|
this.cape.position.y = -6;
|
||||||
this.cape.rotation.x = 10 * Math.PI / 180;
|
this.cape.rotation.x = 10 * Math.PI / 180;
|
||||||
this.add(this.cape);
|
this.add(this.cape);
|
||||||
|
|
||||||
this.ears = new EarsObject(earTexture);
|
this.ears = new EarsObject(earTexture);
|
||||||
this.ears.name = "ears";
|
this.ears.name = "ears";
|
||||||
this.ears.position.y = 5.5;
|
this.ears.position.y = 3.5;
|
||||||
this.add(this.ears);
|
this.add(this.ears);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ export class SkinViewer {
|
||||||
// Use smaller fov to avoid distortion
|
// Use smaller fov to avoid distortion
|
||||||
this.camera = new PerspectiveCamera(40);
|
this.camera = new PerspectiveCamera(40);
|
||||||
this.camera.position.y = 0;
|
this.camera.position.y = 0;
|
||||||
this.camera.position.z = 65;
|
this.camera.position.z = 60;
|
||||||
|
|
||||||
this.renderer = new WebGLRenderer({ alpha: true });
|
this.renderer = new WebGLRenderer({ alpha: true });
|
||||||
this.domElement.appendChild(this.renderer.domElement);
|
this.domElement.appendChild(this.renderer.domElement);
|
||||||
|
|
Loading…
Reference in New Issue