Add loop
This commit is contained in:
parent
6d13f86209
commit
2668795d69
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user