OnCollisionEnter, OnCollisionStay and OnCollisionExit not working

Hi guys,

I have an issue in which my collisions are not called.

My collision should occur between a player which has the following elements :

  • Character Controller
  • Box Collider
  • RigidBody

And a cube which has the following elements :

  • Box Collider

The script is attached to the cube and is :

 void OnCollisionStay(Collision collisionInfo)
    {
        Debug.Log("Stay !!!");
    }

    void OnCollisionExit(Collision collisionInfo)
    {
        Debug.Log("Exit !!!");
    }

    void OnCollisionEnter(Collision collisionInfo)
    {
        Debug.Log("Enter !!!");
    }

None of these functions are called :frowning:

Thank you very much for your help.

Taz.

First of all, character controller itself is a collider, so no need for second one.
Furthermore, its purpose is to be used instead of rigidbody when you don’t want player to be affected by physics, read more here.