mduffin95 / phys2d

A 2d physics engine. I aim to at least have functionality for circles and AABBs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double dispatch collision detection

mduffin95 opened this issue · comments

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.

Used the visitor pattern to allow efficient resolution of collisions.