How can you use a sphere collider so that it does not miss objects from itself?

How can you use a sphere collider so that it does not miss objects from itself?

how about using “(Game object you want to be a child(A Object)).transform.parent = (Game object you want to be a parent(B Object)).transform”

if, A Object be touching Collider(Trigger)Enter of B Object, using (Game object you want to be a child(A Object)).transform.parent = (Game object you want to be a parent(B Object)).transform.

this code is B Object will become the parent of A Object

i’m not good at english… sorry…T^T

Use OnCollisionExit. Also, the child object has to have its own RigidBody, otherwise it’ll become part of the parent’s collider