Can't detect isGrounded collision with tilemapCollider2D

I’m trying to detect if the player is collided with the ground which uses a TileMap2D collider for the ground and box collider for the player. So far the OnCollisionEnter2D doesn’t trigger at all even though the player is colliding with the ground in the game view. Can someone tell me what i’m doing wrong. I’ve triple checked that the tilemap has the ground tag with the correct spelling

void onCollisionEnter2D (Collision2D col)
	Debug.Log ("Player has collided with " +;
	if (col.gameObject.tag == "ground") {
		isGrounded = true;
		Debug.Log (col.gameObject.tag);

Hi @xMrJava ! You wrote onCollisionEnter2D instead of OnCollisionEnter2D. :slight_smile:

hello, i have never used tilemaps but i imagine it is the same as the rest of collisions 2d, so please check this common mistakes that might be causing the bug, first one of the colliders is marked as triggers. second make sure atleast one of the objects has a rigidbody. can you share screenshot of the player and tilemap inscpector? hope it helps.