Unity 2D collider coinciding and not triggering.
I am developing a 2D game using unity.
It is basically a player that has a position equal to that of the mouse position and there are enemies that are destroyed OnCollisionEnter2D
Everything goes well until I figured out a trick : when I move the mouse quickly Collisions are not triggered ,so enemies do not get destroyed.
Is there a way to fix the performance of the circle collider on a 2D player even when moving fast?
Is there a solution for this problem or it is just a problem of the UnityEngine
itself.
Good day.
$$anonymous$$aybe You move so fast that the collider does not ahve time to know is in a collision position.
You need to change the Detection type of the collisions in the rigidboy compoent from Discrete to Continus.
Bye!
Your answer
Follow this Question
Related Questions
How to rotate Circle collider (2D) by X axis? 0 Answers
Unity2d move enemy in opposite direction on collision 1 Answer
How to set box collider to a gizmos cube size 0 Answers
Physics.OverlapSphere does not detect any 2D Box Colliders! 0 Answers
How to create a "trap" when ground is tiled with collider. 0 Answers