Reading force on rigidbody?

Is there any way to determine what the current forces are on a rigidbody? I have a bouncing rigidbody that I want to play a different animation when it’s on the peak of it’s bounce. Anyone have any suggestions?

great question in a way !


what you’re chasing there is actually velocity.

attach this script to your object,

function FixedUpdate()
if ( rigidbody.velocity.magnitude < 0.01 )
 Debug.Log("unity answers saves the day!");

the “forces on” a body never change under gravity, it’s always the same. in this example you’re thinking of velocity. tune the 0.01 figure so it works good for you in your situation.