diff --git a/client/src/lib/Dashboard/Visualization/CameraControls/Scene.svelte b/client/src/lib/Dashboard/Visualization/CameraControls/Scene.svelte
index f1e1df2..4f7affe 100644
--- a/client/src/lib/Dashboard/Visualization/CameraControls/Scene.svelte
+++ b/client/src/lib/Dashboard/Visualization/CameraControls/Scene.svelte
@@ -1,9 +1,87 @@
-
{
$cameraControls = ref
}}
- autoRotate
/>
diff --git a/client/src/lib/Dashboard/Visualization/CameraControls/utils/cameraStore.ts b/client/src/lib/Dashboard/Visualization/CameraControls/utils/cameraStore.ts
index 8bb6f23..6e9f94b 100644
--- a/client/src/lib/Dashboard/Visualization/CameraControls/utils/cameraStore.ts
+++ b/client/src/lib/Dashboard/Visualization/CameraControls/utils/cameraStore.ts
@@ -1,6 +1,8 @@
import type CameraControls from 'camera-controls'
import { writable } from 'svelte/store'
import Hornet from '../../models/Hornet.svelte'
+import type { Mesh, Object3DEventMap } from 'three'
+import type { Group } from 'three/examples/jsm/libs/tween.module.js'
export const cameraControls = writable()
-export const mesh = writable()
+export const mesh = writable()
diff --git a/client/src/lib/Dashboard/Visualization/Visualization.svelte b/client/src/lib/Dashboard/Visualization/Visualization.svelte
index 6d6ea20..bdde5a9 100644
--- a/client/src/lib/Dashboard/Visualization/Visualization.svelte
+++ b/client/src/lib/Dashboard/Visualization/Visualization.svelte
@@ -19,28 +19,20 @@
camera = $cameraControls._camera
}
- // function vectorFromObject(vec: { x: number; y: number; z: number }) {
- // const { x, y, z } = vec
- // const ideal = new Vector3(x, y, z)
- // ideal.applyQuaternion($mesh.quaternion)
- // ideal.add(new Vector3($mesh.position.x, $mesh.position.y, $mesh.position.z))
- // return ideal
- // }
-
onMount(() => {
- setTimeout(() => {
- // $cameraControls.moveTo(3, 5, 2, true)
- // $cameraControls.setOrbitPoint(20, 20, 20)
- $cameraControls.setLookAt(
- 3,
- 5,
- 2,
- $mesh.position.x,
- $mesh.position.y,
- $mesh.position.z,
- true
- )
- }, 8000)
+ // setTimeout(() => {
+ // // $cameraControls.moveTo(3, 5, 2, true)
+ // // $cameraControls.setOrbitPoint(20, 20, 20)
+ // $cameraControls.setLookAt(
+ // 3,
+ // 5,
+ // 2,
+ // $mesh.position.x,
+ // $mesh.position.y,
+ // $mesh.position.z,
+ // true
+ // )
+ // }, 8000)
})