Skip to content

Commit

Permalink
add triangles to mixed bodies example
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 12, 2021
1 parent bc07f56 commit b116f64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions examples/gyro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 0 additions & 3 deletions examples/mixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b116f64

Please sign in to comment.