From ec9fdb23e207075d16eb96ae0b545dd14af98507 Mon Sep 17 00:00:00 2001 From: inventivetalent Date: Tue, 5 Dec 2023 09:41:45 +0100 Subject: [PATCH] change camera location --- index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 0b30e85..58aa8ce 100644 --- a/index.ts +++ b/index.ts @@ -1,5 +1,5 @@ -import { Renderer, SceneInspector, SkinObject, Skins, OrbitControls } from "minerender"; -import { Intersection, Vector3 } from "three"; +import {Renderer, SceneInspector, SkinObject, Skins, OrbitControls} from "minerender"; +import {Intersection, Vector3} from "three"; console.log("hi"); @@ -7,7 +7,8 @@ const renderer = new Renderer({ camera: { near: 1, far: 2000, - position: [50, 35, 50] + position: [-50, 40, -50], + lookingAt: [0, 10, 0] }, render: { stats: true, @@ -19,7 +20,7 @@ const renderer = new Renderer({ enabled: false }, debug: { - grid: true, + grid: false, axes: true } }); @@ -72,6 +73,7 @@ skinInput.addEventListener("change", () => { const controls = new OrbitControls(renderer.camera, renderer.renderer.domElement); +controls.target.setY(10); renderer.registerEventDispatcher(controls); controls.update();