I need to create an endless wrapping world with Box2D (where the X coordinate of all objects is 0 < X < 1000 (say)). I’ve played some games with teleporting objects back and forth but it’s feeling like there might be a better way – any ideas? No object (or chain of linked objects) will have an X span of more than about 50, eg less than the width of the screen.
The camera can see only a small portion of the world at a time (about 5% width, 100% height – the world is about 30 high by 1000 wide).
Cheers.
I’ve implemented the following, which is by no means ideal but fit for my purpose. There are many limitations involved and it’s not a true wrapping world but it’s good enough.