Hi,
I have a rectangle object, the player.
I have a collection of cloned circle shaped objects.
When the player collides with a circle the game ends, see code below.
The problem is that at certain angles the collision is inaccurate. The rectangle never touches the circle yet a collision is detected.
If anyone could point me how to make it more accurate it would be much appreciated.
void OnCollisionEnter2D(Collision2D col)
{
if (col.collider.name == "Point(Clone)") {
Die ();
}
}