Trigger a box collider based on force of an object

Hi I’m making a game with sword motion controls and I want to make the sword combat sort of realistic in the sense that the player has to swing the sword with real swings to trigger the box collider trigger on the sword.

How can I accomplish that with C#? Do I detect the force of the object or the speed?

You could check the velocity of the RigidBody component and if it’s above a certain value execute the collision code: