I created a sphere object, added a rigidbody component (no kinematics) and attached a script to it like this:
function Update () {
}
function OnCollisionEnter(collision : Collision) {
Debug.Log("OnCollisionEnter");
}
I then created a cube under the ball, added a box collider component with no trigger of course.
Then, when I run the game, the ball falls down onto the cube, but nothing happens. The OnCollisionEnter
function isn't called.
What should I do?