I can not get OnTriggerEnter or OnCollisionEnter to work. I have two objects with colliders and one of them has rigid body. Here are the inspectors of both of the objects, so you might see what is wrong.
First is the cube, which has the rigidbody attached and is the one moving during the collision.
Here is the second. This is the plane that the cube is colliding with.
This is the code I am trying to use to just print out a simple debug.log.
using UnityEngine;
using System.Collections;
public class CharacterScript : MonoBehaviour {
void onCollisionEnter(Collision collision){
Debug.Log (collision.gameObject.name);
}
}
I have looked through the documentation for a while, and nothing appears to be wrong, so I am stumped. Any help is appreciated. Thanks so much!