World within a world?

Hello.

Is it possible to have a fully active Box2D world within another? What I want to do is to be able to move the 'stage' around with physics, fling physics etc. Inside that 'stage' I want my items which react to each other. The idea is to be able to scroll around the large world, and then play with the items inside that world, kind of like moving a slide around under a microscope, then playing with the cells on the slide.

Is this possible?

Also, can Box2D work with AIR?

Thanks.
not 100% sure what you mean, but cant you accomplish this by simply changing the stage's x and y co-ordinates?
This idea intrigued me, so I put together a WCK demo of "Worlds within a world". Might not be what you're looking for, but anyway it's the last demo here: http://www.sideroller.com/wck/
Its an interesting concept but I'm unsure what exactly you have going on their. At first glance it looks like what I think it is, but then the worlds themselves don't collide correctly.

It is just three worlds being simulated seperately but the two 'child' worlds are themselves being oriented along with the large dynamic shapes right?
Yep.
Ahh, that's exactly what I wanted. You have some great demo's on the page. Wow, I can't express how chuffed I am. 🙂 I'm going to have a late night I think. 🙂 Once again, thank you.
Proper worlds within worlds would involve making sure gravity is consistent between the two (easyish), and that the inner world has compensation forces for being in an accelerating inertial frame (not so easy). I.e. you must apply any force on the world to every body inside that world, and you must apply a centrifugal force to compensate for the worlds rotation.
@BorisTheBrave, at first i read your statement of expected results and consider, why not just put things inside 4 walls and not make it a separate world, if you want all the forces to apply. but then i think about it some more, and wonder if what you are describing is like a fish bowl effect, where EVERYTHING (not just the stuff touching the walls) would get the directly effected by the worlds velocity and rotation?

On a side note, blocked threat potentially related to this forum?

also, i think the site may have been hacked. when i first tried to follow my Chrome New Tab page link to Box2dForums, it opened a different page, something like a 402 error, with a different site listed. i thought "thats odd" and proceeded to close that window and try to open box2d forums again, and it worked. a few moments later (while typing this reply) i see AVG has blocked a threat from that url that opened.
here are some details,
if this is not happening to anyone else, its potentially not related to this forum. maybe something bugged my crome to not like to the right site once somehow.

INFECTED THREAT INFO
File name: scaner24.org/?affid=318&subid=landing
Threat name: Exploit Rogue scanner (type 922)
I think there may have been some dealt with issue on the forums.

Yes, I was describing what was necessary to have two worlds where the bodies which have a common frame of reference - it still wouldn't be identical to one world though, as impulses couldn't travel from one world to the walls of the other. I was thinking of it for if people wanted hierarchical worlds, or a different performance profile. Simply drawing one world to be aligned with the body of another world doesn't really seem to be a feature to me, nor can I see the use.

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