From 4eb61c004db49dd12767095c76c332b98432bccc Mon Sep 17 00:00:00 2001 From: Jonathan Deutsch Date: Thu, 26 Jul 2018 15:37:00 -0700 Subject: [PATCH] change removeDuplicatePoints precision to default in docs --- 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 9fe191d..b1b5949 100644 --- a/src/factory/Bodies.js +++ b/src/factory/Bodies.js @@ -194,7 +194,7 @@ var decomp; * @param {bool} [flagInternal=false] * @param {number} [removeCollinear=0.01] * @param {number} [minimumArea=10] - * @param {number} [removeDuplicatePoints=0.1] + * @param {number} [removeDuplicatePoints=0.01] * @return {body} */ Bodies.fromVertices = function(x, y, vertexSets, options, flagInternal, removeCollinear, minimumArea, removeDuplicatePoints) { @@ -218,7 +218,7 @@ var decomp; flagInternal = typeof flagInternal !== 'undefined' ? flagInternal : false; removeCollinear = typeof removeCollinear !== 'undefined' ? removeCollinear : 0.01; minimumArea = typeof minimumArea !== 'undefined' ? minimumArea : 10; - removeDuplicatePoints = typeof removeDuplicatePoints !== 'undefined' ? removeDuplicatePoints : 0.1; + removeDuplicatePoints = typeof removeDuplicatePoints !== 'undefined' ? removeDuplicatePoints : 0.01; if (!decomp) { Common.warn('Bodies.fromVertices: poly-decomp.js required. Could not decompose vertices. Fallback to convex hull.');