how to change Rigidbody "interpolate to none" through script.

Hello, I want to change Rigidbody interpolate “interpolate to none” through script when a function runs, But I don’t know the syntax of it. Help

Rigidbody.interpolation is a value from the enumerator type RigidbodyInterpolation, which includes the options (None, Interpolate, Extrapolate).

Changing from any of those values to “None” would look something like:

rb.interpolation = RigidbodyInterpolation.None;

Fortunately, Unity has fairly thorough documentation available, so it’s easy to find (most of) what you need with a quick search.