nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pbox2d comment error

shiffman opened this issue · comments

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"