Farseer Physics Engine Simple Samples v5

Rating:        Based on 2 ratings
Reviewed:  2 reviews
Downloads: 3885
Released: Jul 21, 2009
Updated: Jul 21, 2009 by Qbus
Dev status: Stable Help Icon

Recommended Download

Source Code Farseersimplesamples_v5.zip
source code, 350K, uploaded Jul 21, 2009 - 3885 downloads

Release Notes

This release contains the same demos as the previous release, but it is now upgraded to Silverlight 3.0, Silverlight 3.0 Tools for VS2008 and Farseer Physics Engine 2.1.1.

This sample can now build and run on Silverlight 3.0.
This sample used Farseer Physics Engine 2.1.1.

Demo1
Basic application with a falling yellow box.

Demo2
Controlling the box with the keyboard. This includes the KeyHandler.cs from the original Farseer Physics Engine.

Demo3
This demo introduce Geometry and Vertices, which are used to keep track of collision between the two yellow boxes in this demo. The boxes have different mass.

Demo4
This demo adds a little more complexity as we here use an interface called IUpdateable. This is done as we now have two different types of classes that need to be updated at the gameloop. We both have the PhysicsBox from all the other demoes and a new FixedLinearSpringBrush, which is used to draw a line. In this demo you can click one of the boxes and drag it by moving the mouse and holding down the left mouse button.

Demo5
Shows simple collision and thereby use of vertices. Also shows how to draw vertices using Cameron Alberts helper method http://www.cameronalbert.com/post.aspx?id=1b69e6be-8a2d-49be-8d63-716e54dd1f61

Reviews for this release

     
It's a nice kick-start for those trying to experiment with Farseer. I would suggest adding documentation, more complex demos, and commented code.
by zkhalapyan on Feb 18, 2011 at 12:59 AM
     
Doesn't work with Silverlight 4 apparently.
by hightechrider on Sep 13, 2010 at 2:38 AM