liabru / matter-js

a 2D rigid body physics engine for the web ▲● ■

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Matter.Bodies.fromVertices with rounded vertices

tommar21 opened this issue · comments

How can I do that? I want to do something like:
const body = Matter.Bodies.fromVertices(200, 50, [ [{ x: -50, y: -25 }, { x: 50, y: -25 }, { x: 50, y: 25 }, { x: -50, y: 25 }] ], { chamfer: { radius: 10 } }); and configure every vertice radius