start: der ewige krueis

This commit is contained in:
Schluffe
2026-04-05 18:03:03 +02:00
parent a0ed3e3454
commit e0bd8a2fc7
4 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -5,12 +5,12 @@ import $ from "#/engine/Scene.ts";
import { createVector, getDotProduct, type Vector } from "#/engine/Vector.ts";
export enum Shape {
Cirle,
Circle,
Rect,
Polygon,
}
const CIRCLE = Shape.Cirle;
const CIRCLE = Shape.Circle;
const RECT = Shape.Rect;
const POLYGON = Shape.Polygon;
@@ -64,7 +64,7 @@ export function createCollider(
width = size;
height = size;
if (offset === undefined) {
offset = createVector();
offset = createVector(-radius, -radius);
}
break;
}