OnTriggerExit called when adding RigidBody component

Hi,

I have a setup of:

Parent:
Child: Kinematic Rigidbody with Trigger Collider, listening for OnTriggerEnter/Exit

When I add a Rigidbody to the Parent at runtime the child has OnTriggerExit fire, followed immediately by OnTriggerEnter fire. It looks like the child is triggering with any colliders from the scene that is overlapping the collider.

Why? Is this expected or a bug? I gave the child a Rigidbdoy so it’s collision handling is separate from the Parent.

Thanks, Jake

1 Like

Ive had this problem since 5.2… I am adding Rigidbodies only to nearby Objects as to make them more performant… That causes them to fload mid air as the rigid body gets instantly deleted when on Trigger Exit -_-