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
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.