Is there a way around this/anybody run into this?:
I have a parent with a box collider and a child with a sphere collider which is larger than the parents. (both are Kinematic Rigidbody Trigger Colliders)
When the child’s colliders interact one of them receives the OnTriggerEnter() on the child, the other receives it for the parent. (and just so its mentioned, the collisions between parent and child in the same object are handled.)
Has anyone tried two colliders on an object and found a way around this behaviour? I could drop the parent collider and simply check sqrMagnitudes on every OnTriggerStay(), but this seemed inefficient…
What exactly are you trying to do? If you have a parent object with a rigidbody whose children have colliders but not rigidbodies, those colliders will act as a compound collider for the parent rigidbody, and not collide with eachother.
Thanks, I didn’t think about it that way. I’ll have to go back to the collision grid and see how to combine these objects to get the desired affect.
The application is a group of vehicles. I want to use triggers to make vehicles aware of other vehicles that are close by. I also want to trigger an event when they collide with each other. So I had a child with a sphere collider (radar) and a box collider around the parent waiting for a collision.
I just get the previously unexpected behaviour of receiving a collision on the parent when only the children have collided.