I've seen a few post around on the forum about this, but no one seem to have come up with a clear solution, much less a simple one.
I'm just wondering if there's any plan on implementing a feature for wrapping/warping the edges of the b2World, or if it's solely a problem for the lone user to tackle?
I've got a few ideas of making a generic ghost copy class that sends all impulses to it's real object. When the original closes in on an edge, the ghost is created outside the opposite edge, and swapped with the real object once the original center has gone outside the play area.
I'm not too familiar with the collision handlers yet though, and fairly new to Box2D overall, so I thought it was best to see if any one else had made any progress in this matter and if it's possibly a future built-in feature of Box2D?
Cheers!
I'm just wondering if there's any plan on implementing a feature for wrapping/warping the edges of the b2World, or if it's solely a problem for the lone user to tackle?
I've got a few ideas of making a generic ghost copy class that sends all impulses to it's real object. When the original closes in on an edge, the ghost is created outside the opposite edge, and swapped with the real object once the original center has gone outside the play area.
I'm not too familiar with the collision handlers yet though, and fairly new to Box2D overall, so I thought it was best to see if any one else had made any progress in this matter and if it's possibly a future built-in feature of Box2D?
Cheers!