how to get impules or force of hitted body?

Topics: Developer Forum, Project Management Forum, User Forum
Oct 1, 2010 at 2:06 PM

Hello, every body.

I have some problems to develop a bit game using farseer physics engine.

I hope to get impules or force of body hitted by others ,then if the force or impules has more value than some value, it must be disappeared.

how can I do?

Please, help me.

Thank you in advice.

Oct 1, 2010 at 4:50 PM

Take a look at this thread:

Particularly, Pnikosis' post towards the bottom. 


Oct 1, 2010 at 5:04 PM
Thank you, But I can't find the class called 'ContactConstraint' in my proj.
Where can I find it? can I find it in XNA Framework or Farseer physics engine?
Please help me.

From: [email removed]
To: [email removed]
Date: Fri, 1 Oct 2010 09:51:05 -0700
Subject: Re: how to get impules or force of hitted body? [FarseerPhysics:229308]

From: thezombiecow
Take a look at this thread:
Particularly, Pnikosis' post towards the bottom.

Read the full discussion online.
To add a post to this discussion, reply to this email (
To start a new discussion for this project, email
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at
Oct 1, 2010 at 5:13 PM

It's in  FarseerPhysics.Dynamics.Contacts


using FarseerPhysics.Dynamics.Contacts;


... at the top of your Class.

Oct 1, 2010 at 5:15 PM

unfortunatly, I have not got the namespace you have just give me.

How can i do if so?

Oct 1, 2010 at 5:17 PM

Are you using FP3?

Oct 1, 2010 at 5:19 PM

NO, I am using 2.01

Oct 1, 2010 at 5:27 PM

I am converting my version to FP3 now.

But can you tell me where there is geom class in even FP3?

Oct 1, 2010 at 5:38 PM
Edited Oct 1, 2010 at 5:39 PM

FP3 doesn't use geoms, and has an entirely different scale system. As I understand it, it's not recommended to upgrade a project from earlier versions to 3.

You'll probably want to do some severe reading-around FP3 before messing with your project.

Oct 1, 2010 at 5:41 PM

do you mean I can't use everything supported by earlier version in FP3?

Oct 1, 2010 at 5:48 PM

There are several different ways to calculate the impact force in FPE 2.x.

FPE 3.0 support everything that FPE 2.x did - it uses different algorithms and thus the "feel" of the engine is not the same. FPE 3.0 is a lot more advanced than 2.x, and I only recommend upgrading if 3.0 contains some features that are needed in the game.

Oct 1, 2010 at 5:49 PM

As I understand it, no. You can code around things, but it strikes me as an awful lot of trouble to do so.

Oct 1, 2010 at 5:52 PM

Thank you Genbox.

I am going upgrading my project as you said.

But what can I use instead of Geom Class in FP3?


Oct 1, 2010 at 5:53 PM

Thank you for your worring of me , thezombiecow.

But I am going to upgrade.

Thank you if you support me . ..

Oct 2, 2010 at 1:54 AM

I need someone to give me simple sample for farseer engine 3.0 and XNA 4.0.

Please help me . . .

I didn't understand  FP 3.0.

I am the duration for upgrading from 2.0 to 3.0.

But because there is no 3.0 good simple sample, I can't do anything in my proj.


Oct 2, 2010 at 7:25 AM
The HelloWorld sample under Downloads is nice and simple.
Oct 2, 2010 at 7:51 AM

thank you.

But I mean how and where I can find it.

Oct 2, 2010 at 10:19 AM

At the top left of this page, there's a link to the 'downloads' section. It's there, last one on the list.

Oct 2, 2010 at 10:35 AM

I have already ever done it.

But I can't build it.

My envirement is XNA 4.0, VS 2010, FP 3.0.

I need good sample for my envirement.

Could you help me?