This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-30 00:39:02 -08:00
parent 6d13f86209
commit 2668795d69

View File

@ -110,7 +110,7 @@ export function GameState(ctx: ContextI): StateI {
if (!w) return ctx.pop() if (!w) return ctx.pop()
// Add our world border. // 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({ let borderFixture = worldBody.createFixture({
shape: borderShape, shape: borderShape,
}) })