I have two game objects. They both have a Rigid Body 2D and a Box Collider 2D components.
One of them also has script component. Below is the full script
using UnityEngine;
using System.Collections;
public class Col : MonoBehaviour
{
void Start ()
{
}
void Update ()
{
}
void onCollisionEnter2D(Collision2D col)
{
Debug.Log("collision detected");
}
}
When I start the project, go to the Scene view and drag one GameObject over another i don't get the Log message i am expecting to see.
What am i doing wrong here? Seems so simple.
Last pic is the size of the box colliders so you can see that they are correct size.
I've seem other very similar question and they are all in regards to unity5.0 (i am using 5.0 as well)