0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00

Fix inconsistent Bodies.fromVertices behavior

This commit is contained in:
Luke Deen Taylor 2022-11-19 13:20:12 -05:00 committed by GitHub
parent bc568f0864
commit c4a660a959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,7 +259,7 @@ var Vector = require('../geometry/Vector');
}
parts.push({
position: { x: x, y: y },
position: Vertices.centre(vertices),
vertices: vertices
});
} else {