Double dispatch collision detection
mduffin95 opened this issue · comments
Matthew Duffin commented
Need to think of a better way of detecting collisions between different IEntity types. Double dispatch looks like a good way to do this. Will probably require moving a lot of the collision detection/resolution code inside IEntity derived classes.
Matthew Duffin commented
Used the visitor pattern to allow efficient resolution of collisions.