Now that we’ve looked at the basics of the PVector object class, and even created some of our own objects, lets see if we can make the balls bounce off of one another! This will be the simplest 2D collision physics possible, with nothing extra whatsoever, and the math is surprisingly simple!
Grab the code from OpenProcessing!
|
Adam O'Hern is an industrial design consultant specializing in visual brand languages, and has designed products ranging from laptops to power tools, classroom toys to bathroom fixtures, and robots to lint rollers. He has published with 3DWorld Magazine, CGTuts+, and Luxology, and works with Josh Mings of SolidSmack.com on EngineerVsDesigner.com. |






