16. August 2008 by Mads

As you might know, I created some small "simple samples" in silverlight 2.0 for the Farseer Physics Engine here on my blog. Today I have started putting them on Codeplex.com. I thought I would put them some place else then my blog, as more people maybe will benefit from them, and I have a nice work item/source controll for free also (TFS).

In the first release there is only one single project called "Demo1". It's showing you how to make the farseer engine run, as simple as possible. The samples also works a a kind of tutorial /tutorial, as there is pretty many comments in the code, where I try to explain why I do the different kind of things.

Enjoy - http://www.codeplex.com/Farseersimplesamples

17. July 2008 by Mads

Brandon Trabon wrote me (a comment on this post) the other day and said thanks for my "simple-samples" for the Farseer Physics Engine. It had helped him getting started with the engine, which makes me very happy to hear, as that were the exact reason I created them.

Thanks Brandon.

As a bonus Brandon have made similar sample with collision too, so I have put this on my blog too.

Note: I haven't been able to test this my self due to my Silverlight 2 beta 2 problems, but I'll put it up anyway with this disclaimer :)

Download the sample with collision of the Farseer Physics Engine 1.0.0.6 here

12. May 2008 by Mads

In this sample you learn one way to capture keyboard inputs, react on them by applying force to an object and that way control the object in the game. Again this sample is a simplified version of the code from the original Farseer Physics Engine demo code.

You can download the source here.
And you can see the it running in your browser here.

Feel free to leave a comment if you got any questions.

Enjoy :) 

1. April 2008 by Mads

UPDATE: Please note that there is a new release of this for Silverlight Beta 2: Check it out here.

When you are doing game development you sometimes wants to spice up the game with some physics. To do this from scratch, you need to be pretty good at math and have a lot of spare time. Lucky for us Silverlight Game Developers, Jeff Weber from Farseer Games, created a little engine to help us out. It's called the Farseer Physics Engine.

Currently the latest release is 1.0.0.5 which supports Silverlight 2 beta 1. This is the release used in this sample.

Getting started 

I am new to the Farseer engine myself, and have been looking on the internet for a, "Getting started with Farseer" tutorial, with out any luck. Therefore I desided to create my own. The release of the engine comes with some pretty nice demos, that shows you how to use the engine. The only problem is, that the code is pretty complex at first sight, which could make some people give up. 

Therefore I have created this tiny project to show you how to make the engine run in the simplest form possible. The code should be pretty self-explaining. If you want to know alittle more about why the diffent things are done, you can read on Andy Beaulieu blog, which has a starting tutorial too. The only problem is thats it's for Silverlight 1.1 Alpha and therefore alittle outdated, but the basic things are the same as far as I can see. 

(As I said, I'm new to the engine also, so this can maybe be done even more simpler. If you  have some changes, please let me know. You can use the "Contact" here on the page and send me and email through that. Thanks in advance.)

You can download the source here.
And you can see the it running in your browser here. 

I hope you have a better idea of how to get the engine to work after looking through the source code.

Happy coding! 

Please note: The Silverlight 2 beta 1 currectly have a "region bug" when you position the elements. If you are running with US region settings, there should be no problem, but if you, like me, run with Danish Region settings, this sample will crash at first sight. So to be able to see/run this, you need to set your region settings to English (United States). This works for me.