CODE REPOSITORY

Processing

 

Just released!

COLLISION DETECTION FUNCTIONS - v0.9

A set of functions to do basic 2d collision detection in Processing

While some tools already exist, like the excellent Box2D, the source code is not easy to understand and the implementation is a bit complex. Other examples (equally great), like the line-line collision in the toxiclibs collection, use vector math which isn't great for us "creative programmers" (ie: those like me who got bad grades in high school math).

Instead, these tools can be used as simple, one-line commands to determine whether two objects have collided. Designed for simple games and interactive systems, they are intended to be building blocks for larger projects.

View the project and download the source code on Google Project Hosting

 

GENERAL SNIPPETS

 

TEACHING SKETCHES

 

RANDOM and INTERESTING