WIP WIP WIP

This commit is contained in:
Schluffe committed 2026-03-16 00:18:11 +01:00
1 parent a1c4dd8401
commit 6e95c538fb
6 files changed
+84 -46

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import $ from "#/engine/Scene.ts";
import type { Vector } from "#/engine/Vector.ts";
export type Collider = {};
export type Collision = {};
export function moveAndCollide(
collider: Collider,
velocity: Vector,
delta: number,
): Collision {}
export function processPhysics(
ctx: CanvasRenderingContext2D,
delta: number,
): void {
for (const [id, collider] of $<Collider>("collider")!.entries()) {
const position = $<Vector>("position")!.get(id);
}
}