OnTriggerEnter and OnCollisionEnter don't work. I did my best to fix it :(

Hi guys, I’m trying to make my character collide with a gameObject (Plane) with OnTriggerEnter or OnCollisionEnter, but in none of the cases it worked. The script to detect the collision is in the plane, and in the character the isTrigger option is enabled. Both have Rigidibody and Collider. The script and images are below. I really appreciate any help!

`
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class OutdoorCollision : MonoBehaviour
{
void OnTriggerEnter(Collider col)
{
Debug.Log(“hit!”);
if (col.gameObject.tag == “Player”)
{
Debug.Log(“hit!”);
print(“hit!”);
}
}

void OnCollisionEnter(Collision col)
{
    Debug.Log("hit!");
    if (col.gameObject.tag == "Player")
    {
        Debug.Log("hit!");
        print("hit!");
    }
}

}
`

Uncheck the IsTrigger option in player, then try again

Colliders checked as “isTrigger” are ignored by the physics engine since they signal the engine that the collider is merely to be used as a trigger and not for physics actions like applying forces, halting movement, etc. Uncheck “isTrigger” on the player’s collider.

See Unity’s collider references. Here’s a link to the capsule collider: Unity - Manual: Capsule Collider component reference