This commit is contained in:
Schluffe
2026-04-01 11:39:47 +02:00
parent ea0acab180
commit 51eee7af08
5 changed files with 27 additions and 14 deletions
-5
View File
@@ -25,12 +25,7 @@ const process = defineEntity("portal", {
});
process((id, delta) => {
const position = $<Vector>("position").get(id)!.value;
const collider = $<Collider>("collider").get(id)!.value;
const cPos = collider.aabb.position;
cPos.x = position.x;
cPos.y = position.y;
fillRect(viewport.ctx, collider.aabb, "orange");
strokeRect(viewport.ctx, collider.aabb, "red");