Sphere collider can't detect collision with multiple colliders

Hi guys,

I’m pretty new in Unity and I want to make a simple 3d game. I have a gameobject named player wich has a sphere collider. First of all I want to log every collision with the coordinates of contact point.
However collision.contacts always contains only one contact point. It’s okay when the player only has contact with the ground but when it collides with the ground and an other game object too I need both contact points.
Player has rigidbody and sphere collider.
Ground and other gameobjects have box collider but I tried to add rigidbody and it still isn’t working.
How can I solve it?

I don’t remember that much right now but contacts should belong to that specific collision. So you have separate collisions with their own contact points. Same object can have multiple contacts within just one collision.

Also don’t use collision.contacts, it creates garbage. Use GetContacts.

1 Like

Thanks!