I would like to build a body with Farseer out of two rectangles so it looks like this:
I am a real beginner, so please describe it carefully.
Thanks in advance!
|show 2 more comments|
There are two ways you can do this:
1. With Fixtures
Note: I've spanned some lines in order to explain what's going on, you obviously don't need to do this.
2. With Bodies
You should be able to create a Body with 2 Fixtures attached if Farseer follows what Box2D does.
I've never used Farseer but the following is what can be done in Box2D and there should be something similar in Farseer:
Create 2 PolygonShapes using function below
Create two Fixtures, one for each shape and attach both shapes to your Body using
I created something like this: