Announcing the Farseer Physics Engine for Silverlight 1.1 and XNA Game Studio

You've probably noticed that I haven't posted a new tutorial in the series for a while, and I wanted to assure you that a new one is coming soon. Most of my free time over the past couple of weeks has been spent working with Jeff Weber on a very exciting project and I'm happy to announce that Jeff released it this morning.

Just to be completely clear, Jeff did most of the work on this, I was just happy to help out by doing the Silverlight port.

You can get the code here: http://www.codeplex.com/FarseerPhysics/Release/ProjectReleases.aspx

and you can see the Silverlight demos here: http://www.bluerosegames.com/farseersilverlightdemos

Introduction

The Farseer Physics Engine is an easy to use 2D physics engine designed for Microsoft’s XNA and Silverlight platforms. The Farseer Physics Engine focuses on simplicity, useful features, and enabling the creation of fun, dynamic games.

Features

  • General
    • Easy To Use!
    • Support for XNA (XBOX 360 and Windows)
    • Support for Silverlight (1.1 and above)
    • Support for Managed .Net Languages In General
  • Collison
    • Concave and Convex Polygons Supported
    • Multiple Collision Geometries Per Body
    • Collision Categories For Complex Interaction Between Physics Objects
    • Collision Callback Mechanism
  • Dynamics
    • Joints
      • Revolute Joint (body to body or fixed to world)
      • Angle Joint (body to body or fixed to world)
      • Slider (Prismatic) Joint
      • Pin (Distance) Joint
    • Force Controllers
      • Linear Spring
      • Angular Spring
      • Easy To Build Custom Force Controllers (Explosions, Steering Behaviors, etc.)
  • Support and Debugging
    • Samples Framework With Samples Covering Most Major Engine Features. (XNA and Silverlight versions)
    • Debug Viewer To View All Major Physics Objects (part of samples framework)
    • User Manual (in progress)
Published Wednesday, October 03, 2007 12:44 PM by Bill Reiss

Comments

# re: Announcing the Farseer Physics Engine for Silverlight 1.1 and XNA Game Studio

Hey Bill

I got here through Joe Healey's blog. Very tactile (and addictive) Silverlight demo!

I stumbled across an interesting quirk in some of your demos when using the mouse to drag a line out of the object:

Click and drag a line from the object out of the browser window and release the mouse.

Return the mouse to the game surface, the line will still be there.

Click on any object that's not the blue background. Voila, a bungee cord. :)

It's awesome that the physics of the experience work convincingly with several of these bungee cords. I can tie the shape to many different points.

Here's a screenshot of what I mean www.flickr.com/.../1489342543

I think you could make it part of the operation of the demo, perhaps have people hold CTRL while dragging to create a permanent bungee?

See you at ReMIX

-Glen

Friday, October 05, 2007 9:16 AM by glengo

# re: Announcing the Farseer Physics Engine for Silverlight 1.1 and XNA Game Studio

Glen,

There is a bug in Silverlight 1.1 currently which doesn't allow you to keep the mouse captured when you leave the bounds of the Silverlight control. They have said this will be fixed in a future release.

I have updated the live demo to at least now dispose of an existing spring before creating a new one.  

Friday, October 05, 2007 9:32 AM by Bill Reiss

# re: Announcing the Farseer Physics Engine for Silverlight 1.1 and XNA Game Studio

Bill,

Awesome work there, haven't seen anything like this around yet. Jeff's engine is pretty cool. I'm playing around with collision detection of a dragged object with other moving objects in silverlight, any chance you could release the source for the silverlight demo projects?

MC

Monday, October 15, 2007 9:51 AM by mcam

# re: Announcing the Farseer Physics Engine for Silverlight 1.1 and XNA Game Studio

If you go to the CodePlex Farseer Physics Releases page, the source code for all of the demos is there. It's the zip file that's named  FarseerPhysicsWithSamplesForSilverlight_1.0.0.0.zip

Bill

Monday, October 15, 2007 11:46 AM by Bill Reiss