How do i get the velocity of an object hitting me?

I use on Normal impulse vector Lenght. If more than 4000 then ragdol start…