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:
parent
bc568f0864
commit
c4a660a959
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ var Vector = require('../geometry/Vector');
|
|||
}
|
||||
|
||||
parts.push({
|
||||
position: { x: x, y: y },
|
||||
position: Vertices.centre(vertices),
|
||||
vertices: vertices
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue