Can i make 2 worlds in a swf file ??

hi eveybody
i'm noob in working with box2d . already i'm making a smiple game with box2d .
but i hava an problem ...
my problem : i need to hide some objects but other objects is visible . for example please look at this picture :
Image

thanks to everybody who help me 🙂
good luck
your using debug draw, and you want it not to draw certain things, is that correct?
Quote:
Can i make 2 worlds in a swf file ??
yes
yes .
can you explain me to how hide this object (in that picture) ??
i think , i need 2 worlds . one world for other objects and another world for that object ....
but how can i create 2 worlds ????

thanks a lot for helping me 🙂
It's very rare that you want two worlds - bodies in seperate worlds cannot interact in any way whatsoever.

Regarding drawing, you should not be using debug draw as a long term solution, it is a very simple beastie. It doesn't support drawing some shapes, but not others.
BorisTheBrave wrote:
It's very rare that you want two worlds - bodies in seperate worlds cannot interact in any way whatsoever.

Regarding drawing, you should not be using debug draw as a long term solution, it is a very simple beastie. It doesn't support drawing some shapes, but not others.


thanks for answer .
but look . i'm creating a game with box2d , this game have 5 objects , 4 objects are working with symbols and other one need to be hide .
my idea : create 2 worlds . one world for objects that working with symbols another world for object that need to hide .... (do you understand my idea??)
how can i do this work ??

if (you cant understand my request)
please say ....
then
i change it

thanks
the debug draw feature was designed for debugging. i think the best direction for you to go would be to create art for your objects, and any art you use for the invisible items you can set visible=false.
ok
in changed my question 😐

my new question : I need to create symbols for my square sides . i did this work for fix my problem :

this code is for bottom side
Code:
bd_bottom = new b2BodyDef();
            bd_bottom.userData = new Box_bottom();
            bd_bottom.userData.width = 5 * 32;
            bd_bottom.userData.height = 10;
            bd_bottom.position.Set( 720.0/m_physScale, 100.0/m_physScale );
            body = m_world.CreateBody(bd_bottom);
            body.CreateShape(sd_bottom);
            addChild (bd_bottom.userData);
            body.SetMassFromShapes();


but when i write it again for other sides symbols are created but their not working !!!!
how can i solve this problem ??

Image

thanks
Is there anyone can help me ????

please help .... my work is emergency !

Original thread: https://box2d.org/forum/viewtopic.php?t=5008