Skip to content

Commit 569e075

Browse files
Automatic focusing on newly spawned in robots (#1114)
1 parent 58701c5 commit 569e075

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fission/src/mirabuf/MirabufSceneObject.ts

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ class MirabufSceneObject extends SceneObject implements ContextSupplier {
239239
})
240240

241241
this.UpdateMeshTransforms()
242+
243+
const cameraControls = World.SceneRenderer.currentCameraControls as CustomOrbitControls
244+
cameraControls.focusProvider = this
242245
}
243246

244247
public Update(): void {

0 commit comments

Comments
 (0)