From 998ab33c076651141fd0299a38bda8c29520638f Mon Sep 17 00:00:00 2001 From: liabru Date: Tue, 21 Apr 2015 21:07:09 +0100 Subject: [PATCH] changed default minimum area in Bodies.fromVertices --- src/factory/Bodies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/factory/Bodies.js b/src/factory/Bodies.js index 1809585..49dc72e 100644 --- a/src/factory/Bodies.js +++ b/src/factory/Bodies.js @@ -178,7 +178,7 @@ var Bodies = {}; * @param {object} [options] * @param {bool} [flagInternal=false] * @param {number} [removeCollinear=0.01] - * @param {number} [minimumArea=0] + * @param {number} [minimumArea=10] * @return {body} */ Bodies.fromVertices = function(x, y, vertexSets, options, flagInternal, removeCollinear, minimumArea) { @@ -197,7 +197,7 @@ var Bodies = {}; flagInternal = typeof flagInternal !== 'undefined' ? flagInternal : false; removeCollinear = typeof removeCollinear !== 'undefined' ? removeCollinear : 0.01; - minimumArea = typeof minimumArea !== 'undefined' ? minimumArea : 0; + minimumArea = typeof minimumArea !== 'undefined' ? minimumArea : 10; if (!window.decomp) { Common.log('Bodies.fromVertices: poly-decomp.js required. Could not decompose vertices. Fallback to convex hull.', 'warn');