using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Collision : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D other) {
Debug.Log("TRIGGER");
}
}
BTW I think adding feedback tag means you are trying to give feedback / report some Unity feature related issue - which you are not doing here… you are just asking a question. It shouldn’t be used to catch attention…
If you are using physics2D (like you seem to be using), when one object has collider, and another has collider + rigidbody2D, you should be good to go, even if both are set to be triggers.
But seems like you have set your Pac-man to “Pacman” layer, and your walls to “Wall” - have you made sure, that Pac-man and walls layers are checked in collision matrix of Physics 2D settings? Otherwise those layers wouldn’t register hits between each other…
Also, I won’t start guessing more, but you didn’t even actually mention which objects don’t collide… Pac-man vs walls, or Pac-man vs coins??
Also, can’t see Pac-man rb settings - and walls probably don’t need rb as those are static / non-moving in Pac-man.
You should try to explain all the steps you have taken, otherwise readers will be just guessing what you have done or not done.