title: Unity3D First Person Controller Collision detection
body: <p>I am trying to have a First Person Controller collide with a cube. Both the cube and controller have a rigidbody applied, with Is Kinematic set to false, they are physically colliding, but none of my functions are being called. (I have included all functions we tried to get this working with.)</p>
  
  <p>I have a second cube configured to be a trigger, which works. Both my lecturer and myself don't have any idea why it isn't working.</p>
  
  <p>The code applied to the cube is as follows:
  </p>
  
  <pre><code>var green : Material;
  
  function OnControllerColliderHit () {
      print("OnControllerColliderHit");
      this.gameObject.renderer.material = green;
  } 
  
  function OnCollisionEnter(){
      print("OnCollsion");
      this.gameObject.renderer.material = green;
  }
  
  function OnCollisionStay(){
      print("OnCollsionStay");
      this.gameObject.renderer.material = green;
  }
  
  function OnTriggerEnter(){
      print("OnTriggerEnter");
      this.gameObject.renderer.material = green;
  }
  </code></pre>
  
  <p>Here is a screenshot of my project setup: <a href="https://i.stack.imgur.com/Y4HED.png" rel="nofollow noreferrer">http://i.stack.imgur.com/Y4HED.png</a></p>
  
  <p>Also, I am getting this problem in the Windows version of unity, I have created a fresh project to do this in both times.</p>
  
  <p>** <strong>EDIT:</strong> ** I forgot to mention that the functions are called if the cube hits anything else (Such as the plane if the cube's gravity is turned on), which makes me believe there is something I'm missing from the First Person Controller.</p>