Determining damage from impacts?
Posted: Mon Dec 27, 2021 2:36 pm
Hi all,
sorry if this has been asked before, I had a look through the forum but can't find anything.
I have my 3D space game up and running pretty well, collisions for projectiles/rockets/ etc all going well. And I can comfortably detect when objects hit each other and allow them to bounce off while still registering the fact a collision occured and doing scraping sound effects .. But... I'd like to determine a way to decide hiowmuch damage an impact should to do both objects in a collission, especially if one of my ships is ramming the other?
Is there a simple way to get that from the collision response systems? There's a difference beween glancing blows which do little damage and contact and head on collision which could/should detroy one or both, but I can't think of an easy way to test?
sorry if this has been asked before, I had a look through the forum but can't find anything.
I have my 3D space game up and running pretty well, collisions for projectiles/rockets/ etc all going well. And I can comfortably detect when objects hit each other and allow them to bounce off while still registering the fact a collision occured and doing scraping sound effects .. But... I'd like to determine a way to decide hiowmuch damage an impact should to do both objects in a collission, especially if one of my ships is ramming the other?
Is there a simple way to get that from the collision response systems? There's a difference beween glancing blows which do little damage and contact and head on collision which could/should detroy one or both, but I can't think of an easy way to test?