nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book
MIT License
2.56k stars 952 forks source link

pbox2d comment error #7

Open shiffman opened 11 years ago

shiffman commented 11 years ago

from reader:

This is just a note on the PBox2D example code that came with Processing 2.0b6:

ApplyForceSimpleWind and ApplyForceAttractMouse around line 48

// When the mouse is clicked, add a new Box object if (random(1) < 0.1) { Box p = new Box(random(width),10); boxes.add(p); }

I guess the comment should read something like "add a new Box object about 10% of the time"