Skip to content

Commit

Permalink
changed default minimum area in Bodies.fromVertices
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Apr 21, 2015
1 parent 8031090 commit 998ab33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factory/Bodies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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');
Expand Down

0 comments on commit 998ab33

Please sign in to comment.