diff --git a/v3/src/physics/matter-js/lib/geometry/Vertices.js b/v3/src/physics/matter-js/lib/geometry/Vertices.js index 5869cbec1..8489a14f5 100644 --- a/v3/src/physics/matter-js/lib/geometry/Vertices.js +++ b/v3/src/physics/matter-js/lib/geometry/Vertices.js @@ -275,7 +275,12 @@ var Common = require('../core/Common'); * @param {number} qualityMax */ Vertices.chamfer = function(vertices, radius, quality, qualityMin, qualityMax) { - radius = radius || [8]; + + if (typeof radius === 'number') { + radius = [radius]; + } else { + radius = radius || [8]; + } if (!radius.length) radius = [radius];