I'd like to know how to detect the collision between two objets of the same type.
In my case, two enemies:
I want the nearest enemy to stop moving if it collides another enemy, but... it's confusing since the two enemies have the same object name.
How would you proceed?
Thanks in advance!