Animal AI Detection system

I am currently trying to write a script that allows animal interaction when two of the same animals (same species) are close by (near each other). How would I go about doing this?

Simple if condition, and distance check.

Or easier still apply a collider adjust it for correct distance wanted then set as trigger .

1 Like