- Home /
Child Colliders
Hi, all!
I have these cubes and a 'pusher' that pushes the cubes. One comes from the left side of the screen and another comes from the right.
When a pusher hits a cube, the cube is parented to it, creating a 'push' illusion, minus weird physics (This is a 2D game so it works well)
My problem here is that I need precise things to be carried out on each collision.
Using OnCollisionEnter2D, I ran simple Debug code and this is what I get:
<----------------->
When pusher is approaching cube...
Nothing. Makes sense. No Collision yet.
<----------------->
1) Right Pusher Hit Color Cube!
2) Right Pusher Hit ColorCube!
Still makes good sense. The first cube is hit then parented, and then the second is hit and parented.
<----------------->
1) Left Pusher hit Right Pusher
So where is the Right Pusher hitting the Left Pusher? Isn't that supposed to happen?
Thanks! - YA
Your answer
![](https://koobas.hobune.stream/wayback/20220613152331im_/https://answers.unity.com/themes/thub/images/avi.jpg)