GraphViz – How to connect subgraphs?

In the DOT language for GraphViz, I’m trying to represent a dependency diagram. I need to be able to have nodes inside a container and to be able to make nodes and/or containers dependent on other nodes and/or containers. I’m using subgraph to represent my containers. Node linking works just fine, but I can’t figure … Read more

Ball to Ball Collision – Detection and Handling

With the help of the Stack Overflow community I’ve written a pretty basic-but fun physics simulator. You click and drag the mouse to launch a ball. It will bounce around and eventually stop on the “floor”. My next big feature I want to add in is ball to ball collision. The ball’s movement is broken … Read more