Toroidal Universe, as found in Asteroids (1978)
Posted: Sat Nov 20, 2021 1:06 pm
Noob here, and I apologise if this is a foolish question!
I need to implement a wraparound structure such that 2D soft-body objects passing through/ overlapping screen 'edges' - for some arbitrary screen ratio - act as one would expect as if they were in a toroidal universe: falling through the bottom edge makes them appear at the top, and all collision interactions likewise create.
Think Asteroids, but made of jelly. It's a feature of the project that edge-overlapped objects must not be 'approximately correct', such that accurate tilings can be made of universes (no bad tilings)
Is this possible in Bullet?
Here, for example, is the obvious 2D move in Chipmunk
http://chipmunk-physics.net/forum/viewt ... 4&start=20
I need to implement a wraparound structure such that 2D soft-body objects passing through/ overlapping screen 'edges' - for some arbitrary screen ratio - act as one would expect as if they were in a toroidal universe: falling through the bottom edge makes them appear at the top, and all collision interactions likewise create.
Think Asteroids, but made of jelly. It's a feature of the project that edge-overlapped objects must not be 'approximately correct', such that accurate tilings can be made of universes (no bad tilings)
Is this possible in Bullet?
Here, for example, is the obvious 2D move in Chipmunk
http://chipmunk-physics.net/forum/viewt ... 4&start=20