problem getting other collision object in OnCollisionEnter

Hi,

I have a ball and a box.

The box is just a collider attached to a gameobject. The gameObject is parented to another object which has the rigid body and it is kinematic.

However when the ball uses onCollisionEnter in a script, it does not detect the correct game object. It detects only the parent. How can I solve this issue so I know which boxes the ball collides with?

Thanks!

I tried attaching rigidbodies to each collider instead of having one rigidbody for all the colliders but this led to physics instability as the boxes object rotated.

So basically, having a hard time detecting what other box i collided with…