From 6fbf4293d91829cf68faf8ed4f3adee73ac42a92 Mon Sep 17 00:00:00 2001 From: Kevin Potschien <74183739+kpotschi@users.noreply.github.com> Date: Fri, 30 May 2025 15:33:49 +0200 Subject: [PATCH] fix/return-body-in-createPolygonFromVertices to get the expected return from CreatePhysicsEditorShape() --- src/physics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/physics.js b/src/physics.js index 413f20a..278a929 100644 --- a/src/physics.js +++ b/src/physics.js @@ -1066,6 +1066,7 @@ export function CreatePolygonFromVertices (data) b2CreatePolygonShape(body.bodyId, shapeDef, nGon); } }); + return body; } /**