Wrap Around

I'm wanting to create an environment with a limited height/width where the shapes "wrap around" to the other side when they reach the edge of the field. For example, if I have a box that's falling and goes below the screen it will seamlessly go to the top and keep falling.

The problem is, it's not as simple as changing the shapes' locations when they reach the edge. If a shape is halfway off the edge I need it to interact with both sides. Is there any way to do this?
You read the FAQ, right?
http://code.google.com/p/box2d/wiki/FAQ
Okay, sorry about that. Thanks!
I've just made a working playfield warp/wrap barely a week ago and posted it in my thread with the same question.
viewtopic.php?f=4&t=4855
I haven't cleaned up the code much though, so it's just some evidence that it's possible to achieve with a bit of tinkering. If you're interested, I could make a simple demo code without my own game library, or try to explain it without code.
I am interested. And if I don't have to give an email address to download the thing, that's even better.
I'd also be interested. I'm using the AS3 port, however, so do you think you could explain what changes you made?
@ Gnurfos
I'll try find another file hosting site. My lame-o web hotel doesn't allow download traffic. Register a hotmail/whatever for junk why don't you 😉

@ ryanclewis
I haven't made any changes to the Box2D library. It's all appended on it with the contactListener and a few classes of my own, so it should be possible to do it on any port.


Give me a week or a little more and I'll try find the time to refine it a bit into a more presentable source. Keep an eye on my original thread.

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