Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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.
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal


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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

636 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