From 569e075868e56a1bc7b5e4f2680dca3b963d0bb0 Mon Sep 17 00:00:00 2001 From: Hunter Barclay Date: Tue, 31 Dec 2024 16:03:53 -0700 Subject: [PATCH] Automatic focusing on newly spawned in robots (#1114) --- fission/src/mirabuf/MirabufSceneObject.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fission/src/mirabuf/MirabufSceneObject.ts b/fission/src/mirabuf/MirabufSceneObject.ts index 1a1fca13d..9be2078ae 100644 --- a/fission/src/mirabuf/MirabufSceneObject.ts +++ b/fission/src/mirabuf/MirabufSceneObject.ts @@ -239,6 +239,9 @@ class MirabufSceneObject extends SceneObject implements ContextSupplier { }) this.UpdateMeshTransforms() + + const cameraControls = World.SceneRenderer.currentCameraControls as CustomOrbitControls + cameraControls.focusProvider = this } public Update(): void {