From 2668795d69b0197c172af153ac8f584b59998a3a Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sun, 30 Jan 2022 00:39:02 -0800 Subject: [PATCH] Add loop --- Engine/src/states/Game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/src/states/Game.ts b/Engine/src/states/Game.ts index b8b99bc..b6452de 100644 --- a/Engine/src/states/Game.ts +++ b/Engine/src/states/Game.ts @@ -110,7 +110,7 @@ export function GameState(ctx: ContextI): StateI { if (!w) return ctx.pop() // Add our world border. - let borderShape = planck.Chain([planck.Vec2(0, 0), planck.Vec2(w.width, 0), planck.Vec2(w.width, w.height), planck.Vec2(0, w.height), planck.Vec2(0, 0)]) + let borderShape = planck.Chain([planck.Vec2(0, 0), planck.Vec2(w.width, 0), planck.Vec2(w.width, w.height), planck.Vec2(0, w.height), planck.Vec2(0, 0)], true) let borderFixture = worldBody.createFixture({ shape: borderShape, })