Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Two CharacterControllers Not Firing OnControllerColliderHit

Discussion in 'Editor & General Support' started by RdArrogantKnight, Jul 4, 2013.

  1. RdArrogantKnight

    RdArrogantKnight

    Joined:
    Jun 24, 2013
    Posts:
    13
    I spent an hour last night trying to figure out why my CharacterControllers weren't triggering OnControllerColliderHit when they touched each other.

    They do trigger OnControllerColliderHit when they touch BoxColliders in the environment, just not each other.

    Nothing in the documentation I've seen suggests that CharacterControllers aren't supposed to fire OnControllerColliderHit when they collide. And yet... here we are.

    Any thoughts?
     
  2. 3dgrinder

    3dgrinder

    Joined:
    Oct 21, 2008
    Posts:
    249
  3. RdArrogantKnight

    RdArrogantKnight

    Joined:
    Jun 24, 2013
    Posts:
    13
    Okay. My use of the word "triggering OnControllerColliderHit " was misleading, I guess.

    They are not triggers. They are CharacterControllers.
     
  4. jlevet

    jlevet

    Joined:
    Sep 9, 2013
    Posts:
    34
    Hello,

    I have the same problem. I have multiple CharacterControllers on my scene, and OnControllerColliderHit method is not called.

    Did you solved this problem? Anyone else have encountered this?
     
  5. jlevet

    jlevet

    Joined:
    Sep 9, 2013
    Posts:
    34
    Nevermind, i found the solution in Unity Doc.
    http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.html

    I was detecting Collision between 2 CharacterController when both were moving, but not when only one was moving, that is why.