Measure Rigidbody deceleration

Hey everybody!

I need to measure the rigidbody deceleration to apply cool effects.

Does anybody know how?

Thank you,
Nikita Makarov

robertbu’s comment contans the answer!

"Sample Rigidbody.velocity.magnitude at some frequency and compare the numbers. Note you may have to average over several frames to smooth things out.

rigidbody acceleration - Questions & Answers - Unity Discussions "