So I am trying to use OnTriggerEnter to detect when the player is near an object, and have set sphere colliders with isTriggered checked around the object and placed a rigidbody on the players object. Here’s is what the code looks like:
void OnTriggerEnter(Collider col){
Debug.Log("IN");
}
However, every time the player object gets into the area of the collider, nothing happens. What could be the problem that is preventing the Debug from printing?
Note: this script is in the players script and I have tried to move it to the object with the collider, but that doesn’t work either.