OnCollisionEnter does not work.

Hey guys I am trying to make it so that once my AI hits an interactive object(couch) then he switches to another waypoint, but nothing happens when my AI hits an object, the function is not being called cause I put a debug right at the beginning. I have the couch tagged as “Interactive” and placed this code on the AI. NOTE: this is a long script, I have set currentWaypoint and randomWaypointRange as ints FYI.

function OnCollisionEnter(other : Collision){
 if(other.gameObject.tag == "Interactive"){
 Debug.Log("Hit an Object");
currentWaypoint = Random.Range(0,randomWaypointRange); 
 
 
 }
 }

View the bottom of this reference page and make sure the two colliders you want to collide are compatible.

Collider Reference

Then once they are colliding correctly make sure that the gameObject is tagged correctly.