|
I would like to know how i can access the object i am colliding with to figure out how my object should react.(trying to make AI) for instance if it hits a player i want it to start attacking but if it hits a wall it will just turn in another direction.
(comments are locked)
|
|
Put this in your AI script: If you're not using a trigger, it'll be something like:
(comments are locked)
|

You could do an if loop or a switch based on collision.collider.tag