farseer physics

Posted on 2010-09-16
Medium Priority
Last Modified: 2013-12-26
I want to use farseer physics with silverlight to make some animations.

q1)I want an introductory tutorial to code with the code behind (NO xaml and NO expression Blend).

q2)can i use vb.net or do I need c#.
Question by:jagguy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 33694414
You should be able to download the C# source and just build the DLLs from it, then reference those in your project and use VB in your project. For the most part, it won't care that the DLLs were built from C#. It looks like there might be some issues calling a few methods, though: http://farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=208290

The examples you linked to were apparently built for VS2008 SP1, but if you don't already have a solution created you will need to create one, then "Add Existing Project..." and point to the .csproj file.

It looks like there aren't really many people using Farseer with VB...but if there are, hopefully they can post some specific examples for you here.

Author Comment

ID: 33697580

OK thanks I wil try it.

I can use c# but some examples are what I need. A beginners turorial if you like not a 500 line demo or a simple no code xaml /blend is no good either.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 33703200
This post has some info about setting up a Body, and does the work in the code-behind: http://blogs.msdn.com/b/rahul/archive/2008/09/29/physics-based-games-in-silverlight.aspx

Overall, you may want to look into getting a book that will go much more in-depth. I haven't read this one, but by the description it seems like it is probably worth a look: https://www.packtpub.com/3d-game-development-with-microsoft-silverlight-3-beginners-guide/book

Author Comment

ID: 33707428
The problem is 2fold.
Farseer cant seem to get away from Blend . Blend is for making UI elements not graphics and you dont make games with UI elements. Also not much information is available withFarseer and SL.

Silverlight and 3D games same issues and SL isnt designed to make 3D games and if you need help?who makes 3D games with silverlight?

Silverlight is too new for this and Flex is established and easier to get help in.

I prefer silverlight but for more advanced games i cant think of a good reason to stick with Silverlight.

Accepted Solution

adler77 earned 2000 total points
ID: 33708812
OK. I guess I don't necessarily agree that "Farseer is only for Blend"; I've used it a bit in some apps that that I needed some physics in (not games, but mostly for visualization) and I didn't touch Blend for any of it.

As for 3D--you can have perspective 3D in either Silverlight or Flash, but neither offer "true" 3D. You need to use a separate library for that. Flash has been around quite a bit longer, so I would agree that there has been much more done for 3D in that arena. I don't know that it completely counts out SL, though.

Having used both Flash for many years and SL from version 1, I must say I do prefer developing in SL much more, and it is pretty rare that I really "miss" Flash. Ultimately, though, you have to make the decision based on your target audience, what you are comfortable developing in, and the technology available. Because .NET has such wide adoption, I think the future for SL is very bright, but there are still some areas where Flash has had such a head start (such as gaming) and it is a proven platform.

Author Comment

ID: 33763226
I agree with you so and I prefer SL but see the need to develop games with Flash as SL is a little weak in some areas currently.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question