This video demonstrates objects colliding in a spherical coordinate system. The shell surrounding the Black Hole is generated randomly. Each block of the shell is a unit on a grid, which is mapped to a sphere surrounding the Black Hole. Since the blocks lay on a grid, checking collision between a Dandello and the shell is very fast. All I do is take the Dandello and find it's location in spherical coordinates. Once I've done that, I just directly look at the location on the grid to see if there is a block at that location.
Link to this comment:
All Comments (0)