Ball Demo

Topics: User Forum
Dec 5, 2006 at 2:27 AM
I just downloaded this and I must say this is everything I've wanted in a 2D physics engine. It took me literally a half hour to write up a quick demo with 200 rigid balls bouncing around. Then fun part is that I've incorporated an effect and I'm using a vertex buffer for the ball so it's really nicely set up. Hopefully this helps someone else out there.

Thanks again for the great work.

Download my project from here: <a href="http://nick.grave-media.com/code/FarseerBallDemo.zip">http://nick.grave-media.com/code/FarseerBallDemo.zip</a>.
Dec 5, 2006 at 2:32 AM
Just noticed I forgot to put a local copy of the Farseer Physics dll so you'll have to add that reference for it to work. I'll upload a new version as soon as I can.

Another cool thing to note: you can click anywhere and the mouse will create an "explosion" (non-visual) that pushes balls away using a constant force (set at the top as MouseForce) and scaling it by the distance from the mouse to the ball.
Coordinator
Dec 5, 2006 at 1:01 PM
Cool demo.

Glad you like the engine so far.