Collision detection problem

I’m trying to solve this one for a while…
Problem is that i can not detect collisions.
Here is what i do.

I have 2 objects (cubes), ball and floor. Ball is tagged Player, floor is tagged Floor.

Ball is rigid body, has collider, and floor had collider only.

I try this:

public class Zzz : MonoBehaviour {
void Start () 
{
}
void Update () 
{
}
void onCollisionEnter (Collision collision)
{
Debug.Log ("Collision");	
}
}

Ball falls on floor, stays there, but, nothing else happens.
Nothing happens if i check for collision with tagged object too.

I think i’m missing something very simple and obvious but i can’t see it.
Tried searching internet, it seems i’m doing like i should, but nothing…

It would be funny if…

Put a big O instead of a small o on your onCollisionEnter ?

the function is OnCollisionEnter with a capital O

:slight_smile:
It works…can’t believe it…
I thought compiler will warn me if i make mistake like that…
Thanks for quick resposne :slight_smile: