Using box2d (+cocos2d iPhone) , i have to create a simple rect , that will be hollow- that means having a square , that i can put bodies into it (like a cage ) .
I need to create that body with 4 B2VEC vectors .
How do i code that ?
The box2D says that :
Polygons are solid and never hollow
- how can i create a hollow square
- how do you code that with 4
b2vec2
Thanks .
ok , you can do it with a chain shape for example(docs) :