Let's say I have a vehicle. And cannonballs are being hurled at it. How do I determine when the cannonball hits the car (so I can calculate damage and etc)? Is there a way to check all collisions the car has in each frame? And then for each collision check if the object is a cannonball? Something like that?
Is there a better way to do this?
Is there a better way to do this?