It, uh, seems like this discourse server doesn’t get a whole ton of traffic… but I’ll ask anyway I guess
I’m making a 2d platformer w/ nphysics, and I want to have the world wrap horizontally. In a previous iteration of the game where I implemented my own physics engine this wasn’t too hard to achieve – if an object is close to the left or right “world bounds”, in addition to having them collide with objects normally, translate them for the “wrap” and have them collide with things on the other side.
Is there a way to do this in nphysics? The best solution I can think of is, when an object gets close to the border, add a “shadow body part” that is the wrapped version, so that any forces on that body part also apply to it. But I think that might get weird with angular velocity & torque.