diff --git a/Engine/src/states/Game.ts b/Engine/src/states/Game.ts index 1a864af..de6cdb3 100644 --- a/Engine/src/states/Game.ts +++ b/Engine/src/states/Game.ts @@ -255,7 +255,7 @@ export function GameState(ctx: ContextI): StateI { // Zonage let addZone = (zone: Zone) => { if (zones.find(v=>v===zone)) return - let shape = planck.Chain(zone.points.map(v=>planck.Vec2(v[0],v[1]))) + let shape = planck.Polygon(zone.points.map(v=>planck.Vec2(v[0],v[1]))) zone.fixture = worldBody.createFixture({ shape: shape, })