I couldn’t see your pictures , but I think I can help.
Make a new script, then in the script write :
function OnCollisionEnter(theCollision : Collision)
{
Debug.Log("Hit the " + theCollision.gameObject.name);
}
Make a Floor , name it “Floor”.
Make a Cube.
Click on the cube.
Look in the Inspector window (very important) →
There are these “Components” :
- Transform
- Cube (mesh filter)
- Box collider
- Mesh renderer
you should also give the cube a “Rigidbody” . If no Rigidbody is in the Inspector , add one like this :
Look at at the top of the Unity window ,
( File - Edit - Assets - GameObject - Component - Terrain - Window - Help )
click on Component , then click on Physics > Rigidbody .
Now you should see Rigidbody Component in Cube Inspector (mass, drag, gravity, …)
don’t forget to drag-and-drop the script onto the cube also.
now Click on the cube , look in the inspector window , you should have :
- Transform
- Cube (mesh filter)
- Box collider
- Mesh renderer
- Rigidbody
- your script (Script)
now click play. Now the cube should fall down (gravity in rigidbody), and the message should appear “Hit the Floor” .
You need a rigidbody component for physics and collisions to work. Here is some information on Rigidbody :
http://unity3d.com/support/documentation/Components/class-Rigidbody.html
http://unity3d.com/support/documentation/ScriptReference/Rigidbody.html
Hope this helps =]