Hi there, thanks to the Farseer folks, I'm loving your engine!
I'm currently working on my senior project in my computer science major. We are using Farseer to make an XNA game for the XBOX 360.
Our game is all about magnets and I'm trying to get some realistic magnet effects going.
If I have the player body "pushing" (we're currently faking it with impulses applied directly to a target body) on another body, that body moves until it hits a surface at which time it stops. Great! Now, when it stops we would then like that force
to push the player away. I'll try to illustrate:
___PLAYER ---> Object__________|
___PLAYER ------------> Object |
Now object has nowhere to go so...
I am having trouble determining when the target object is stuck against a wall. I was thinking of trying to capture the normal force being applied to the object due to the repeated impulses we are applying and then transferring that force to the
player. However, I don't know if that is possible and if so how to do it.
Does anyone have any ideas on how to create this effect?