Collision between two 2D objects.

I’m trying to create a very simple game and am attempting to add collision detection between 2D objects.

I’ve got a space ship, an enemy and a bullet.

I click, a bullet appears, hits the enemy - but I can’t get anything to actually happen.

All the objects have a RigidBody2D attached and a polygon collider.

The collider has “Is Trigger” ticked.

I don’t want any of the RigidBody physics to impact the objects - so I’ve turned off “Simulated”.

In my script for the bullet and the enemy I have:

private void OnTriggerEnter(Collider other) { Debug.Log("Is triggered"); }

I’ve tried just about every combination of dynamic/kinematic/use full kinematic contact/IsSimulated and don’t seem to be seeing any difference.

What am I missing - why am I never triggering anything?

It actually triggers the following:

private void OnTriggerEnter2D(Collider2D other)

Subtle but important difference…