- Home /
Measure Rigidbody deceleration
Hey everybody!
I need to measure the rigidbody deceleration to apply cool effects.
Does anybody know how?
Thank you, Nikita Makarov
Sample Rigidbody.velocity.magnitude at some frequency and compare the numbers. Note you may have to average over several frames to smooth things out.
http://answers.unity3d.com/questions/48179/rigidbody-acceleration.html
Answer by nikita68 · Jun 19, 2013 at 06:03 PM
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.
http://answers.unity3d.com/questions/48179/rigidbody-acceleration.html "
Your answer
Follow this Question
Related Questions
Ways to work around OnCollisionStay/Enter events firing one frame late? 2 Answers
Basic questions about Unity and RigidBodies 1 Answer
Simple rigid body free fall results in correct velocity but not distance? 2 Answers
Physics.Simulate time increases exponentially relative to rigidbody count 1 Answer