I want to check, if the player collides with the terrain. But my code doesn’t works. My player object contains CharacterController and CapsuleCollider, terrain - TerrainCollider.
void OnCollisionEnter (Collision other) {
if(other.gameObject.tag == "Ground")
Debug.Log ("43432");
}
OnCollisionStay doesn’t work too.