Bullet handling

 Author: Daniel Jackson


Our collision library was massive. Part of the reason for that is that it handles more than it's supposed to. A section of that was handling bullets and their special cases such as explosions. Extra checks such as this were bloating the collision library, making it more difficult to work with and read.

To minimize collision as much as I could, I disconnected my systems from it as much as possible. Collision itself no longer creates any bullets or explosions, instead all special effects are now handled inside the bullets update or destructor according to the shooter and the weapon type.


(New bullet.cpp handling explosions)


(Example of cut section from collision)





Comments

Popular posts from this blog

Adding assets to every enemy -- Owen Meyers

Sphere to AABB collision