Collider with more health wins collision? Please Help!
Sorry I don't have a specific example or if this is simple but I basically have colliders (like cannon balls) that fly at each other. When the collision happens the health of each is compared, if ball one has 120 health and the ball two has 90, i want ball two to be destroyed (this part I can do) and ball one to continue flying in direction specified with 30 health.
So all that being said, how do I make sure that when a collision2D happens that the objects can check the colliders health (part I can't figure out) as well as each of them subtract their health's from the other.
Your answer
Follow this Question
Related Questions
Collider with more health wins collision? Please Help! 0 Answers
Detect overlapping objects 2D game 0 Answers
How i can fix a player controller bug? 0 Answers
What is ContactPoint.point? 0 Answers