Skip to content

Commit

Permalink
Automatic focusing on newly spawned in robots (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay authored Dec 31, 2024
1 parent 58701c5 commit 569e075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fission/src/mirabuf/MirabufSceneObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 569e075

Please sign in to comment.