How to change simulate physics to no physics when a mesh go through another mesh before hitting a target

I have an arrow with simulate physics on and I need it to switch off the simulate physics when it overlap a custom mesh before it hit a target… It worked when I put a box trigger in front of the target, the arrow switched simulate physic off when it overlaped the trigger… I don’t understand why a custom trigger doesn’t work.

Any suggestions