Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am new to using Farseer Physics Engine 3.2(FPE), so please bear with my questions. Also, since FPE 3.2 is based on Box2D, I have been reading Box2D manual and pieces of code scattered in samples to better understand terminology and usage.

Pong is usually my testbed whenever I try to do something new. Here is one of the issue I am running into:

  • How can I restrict paddles to move only along Y axis, because the ball comes in and knocks off the paddles and everything floats in space afterwards ? (Box = Rectangle and ball = circle)

  • I know MKS is the unit system, but is there a recommendation for sizes/position to be used ? I know this is a very generic question, but it would be good to know a simple set of values that one could use for making a game as simple as pong.

Between box2d and FPE, I have some doubts:

  • what is the recommended way of making a body in FPE ?

    • world.CreateBody() does not exist in FPE
    • Box2d manual recommends never to "new" body(since Box2D uses Small Object allocators), so is there a recommended way in Farseer to create a body (apart from factories) ?
  • In box2d, it is recommended to keep a track of the body object, since it is also the parent to fixture(s). Why is it that in most of the examples, the fixture object is tracked ? Is there a reason why body is not tracked ?

Thanks

share|improve this question
    
Have you considered asking the question on the farseer discussions page? farseerphysics.codeplex.com/discussions ... On second glance, apparently you have, and have an answer too: farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=243468 –  Jari Komppa Jan 27 '11 at 8:54
add comment

1 Answer

up vote 0 down vote accepted

I found the answer at farseer forumn itself. Please check out this thread for answers and more info!

http://farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=243468

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.