antfarmar / Unity-3D-Asteroids

A simple Asteroids clone. In 3D.
The Unlicense
65 stars 15 forks source link

Collision Manager: Centralized Collision Resolution #37

Open antfarmar opened 8 years ago

antfarmar commented 8 years ago

Instead of collisions resolutions being dispersed throughout many classes, perhaps collisions would be better handled by a dedicated class.

e.g. Collisions.HandleCollision("Asteroid", "Ship") (string parameters sorted alphabetically to avoid checking permutations)