From b116f642256a12655f0404930442e3be39bddfc3 Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 12 Dec 2021 13:20:15 +0000 Subject: [PATCH] add triangles to mixed bodies example --- examples/gyro.js | 3 --- examples/mixed.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/examples/gyro.js b/examples/gyro.js index fadac72..dc51c37 100644 --- a/examples/gyro.js +++ b/examples/gyro.js @@ -36,9 +36,6 @@ Example.gyro = function() { var stack = Composites.stack(20, 20, 10, 5, 0, 0, function(x, y) { var sides = Math.round(Common.random(1, 8)); - // triangles can be a little unstable, so avoid until fixed - sides = (sides === 3) ? 4 : sides; - // round the edges of some bodies var chamfer = null; if (sides > 2 && Common.random() > 0.7) { diff --git a/examples/mixed.js b/examples/mixed.js index 447c9b0..3e022b3 100644 --- a/examples/mixed.js +++ b/examples/mixed.js @@ -36,9 +36,6 @@ Example.mixed = function() { var stack = Composites.stack(20, 20, 10, 5, 0, 0, function(x, y) { var sides = Math.round(Common.random(1, 8)); - // triangles can be a little unstable, so avoid until fixed - sides = (sides === 3) ? 4 : sides; - // round the edges of some bodies var chamfer = null; if (sides > 2 && Common.random() > 0.7) {