Is it possible to create a periodic world, i.e. if you exit from one side, you enter from the opposite side? As in Towerfall Ascension, for example. I’ve not been able to find any information on this topic elsewhere.
It is, and there are some functions for it. The tricky part is calculating distances or vectors across the boundary, if that’s part of the game.
Thanks @samme, the reference escaped me because I wasn’t looking for ‘wrapping’!
I see wrap
exists exclusively for arcade physics. Is there no equivalent currently for matter physics? Given the source code of wrap
here, it doesn’t look like it should be too difficult to replicate for matter. Do you foresee some hidden difficulties adapting wrap
to matter?
I don’t know much about Matter Physics, but you can use Actions.Wrap() on any game object. Maybe worth a try.