Only one object detects collision/trigger (2D)
Hi
So I have two game objects: one is a player and the other is a static object on the map. Both have colliders on them (box and circle). When I move the player so that their colliders are colliding, the static object detects the collision but the player doesn't. I checked this by logging the names of the objects to the console from each object when they collide with something; only the message from the static object appeared. I have not touched the collision matrix. The player has a kinematic rigidbody2D, the static object does not have a rigidbody. How do I make it so that the player can detect the collision? Thanks
Code: void OnTriggerEnter2D(Collider2D collision) { Debug.Log("name"); }
Your answer
Follow this Question
Related Questions
How to detect collision of two moving characters? 1 Answer
Not using GetComponent during OnCollisionEnter or OnTriggerEnter 1 Answer
How do I detect a collision between two objects using Bolt? 1 Answer
how to make particles NOT collide with triggers? 1 Answer
Collision Between Two Child GameObjects 0 Answers