I have an object Hand, with a rigid body attached to it. In every Update() call, the user’s hand controller rotation and position are tracked.
In my scene, there is an object Pin, with a mesh collider attached to it. Inside OnTriggerEnter() (called inside the Hand class), Pin becomes re-parented to Hand. (Pin’s original parent is something else.)
My scene also contains other objects with colliders. However, these other objects do not get re-parented – only Pin does.
Once this re-parenting takes place, OnTriggerExit() (inside the Hand class) is called immediately. This is surprising to me – I had expected OnTriggerStay() (inside the Hand class) to be invoked instead.
Is such behaviour by design? Is there an elegant way of working around such behaviour?