Unity 2022 - Checking Direction of Colliding Objects Using Euler Angles

Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=r2hsO3ijPYQ



Duration: 0:00
166 views
6


Two object colliding and want to know which direction they are traveling? Here you go.

Update: Found a glitch, if enemy unit is facing down (180) and tower is facing up (0) the calculation does not work. so you can just add a second IF statement to check for that occurence.