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, })