Unknown problems with collision detection

Not sure where the problem is here, its a standard collision but is just not being recognised, at all. At the moment i have attached a character controller to my player, with a rigid body i got the message “Script Error: OnCollisionEnter” And the collision didn’t work. Nothing is working, the collision isn’t there, its attempting to print to console, but isn’t. I cannot for the life of me fathom this problem. I have tried both with rigid bodies, one and then both with kinematic, i do not understand :frowning:
This is what i am using with the character controller:

function OnControllerColliderHit (hit : ControllerColliderHit) 
{
	if(hit.gameObject.tag == "FirstBar")
	{
	print ("What is the problem?");
	transform.position.y -= 1;
	}
}

obviously with a rigid body just swapped out “OnControllerColliderHit” with “OnCollisionEnter”

Thanks guys.

On you gameobject with this script,do you have activated “on trigger” ?

No, it has a character collider, so there isn’t a collider with a trigger.

bumb

bumb

bumb?

try moving the print outside the if statement to see if the function is being called.