feat: some moving around

This commit is contained in:
2024-04-15 22:13:43 +02:00
parent 0254bc1ae5
commit dec205b234
86 changed files with 505 additions and 409 deletions

View File

@@ -0,0 +1,25 @@
import { Vector3 } from "three/src/math/Vector3.js";
import { lines, points } from "./store";
export function debugPosition(x: number, y: number) {
points.update((p) => {
p.push(new Vector3(x, 1, y));
return p;
});
}
export function clear() {
points.set([]);
lines.set([]);
}
export function debugLine(line: Vector3[]) {
lines.update((l) => {
l.push(line);
return l;
});
}
import Component from "./Debug.svelte";
export default Component