Collision on character controller (fps player)

I’ve been trying to work out my way through a simple collision problem.

I have a fps player with a character controller attached to it and I am trying to make it collide with a box. On the box, I have a box collider (is trigger = uncheck), a rigidbody with gravity turned on and this simple script

#pragma strict
function OnCollisionStay(theCollision : Collision) {
if(theCollision.gameObject.name == "fpsplayer"){ 
Debug.Log("Hit Player!");
}
}

attached to it. When I put this rigidbody over the fpsplayer head it falls and the debug do show collision happens but when I put it in the world and make my player’s way to it and make it collide with the box no collision is detected.

Thanks, and a Happy New Year.

Fattie sir please be generous and let the question pass the moderation c:

I know that character controller only detects collision while moving, perhaps you could try CharacterController.OnControllerColliderHit.

Use CharacterController.Move to move your player, other wise you can’t detect collision on your Character Controller.