- Home /
OnCollisionEnter not registering on children
I have two box gameobjects, both with box colliders attached to them. They are both children of an empty gameobject with a script attached to it that hooks the OnCollisionEnter message and prints a debug line when called. However, none of the collisions seem to be working, and I'm not sure why.
Comment
How is the presence of a RigidBody looking?
Do any colliding objects have a rigidbody? It is required in at least 1 of two colliding objects.
Your semantics are confusing.
Oh. Yes, a ball that i'm controlling with the keyboard to test the collisions has a rigidbody.
To be clearer, you could've initially said "Do any of the objects involved in the collision contain a rigidbody?"
Your answer
![](https://koobas.hobune.stream/wayback/20220613181610im_/https://answers.unity.com/themes/thub/images/avi.jpg)