Tests if a rigid body is controlled by physics. See unity docs: IsKinematic.
The game object to test.
Event sent if it is kinematic (not controlled by physics).
Event sent if it is not kinematic (controlled by physics).
Store the result in a bool variable.
Perform the test every frame. Useful if you want to wait in a state until IsKinematic is true or false.