Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Description

Interpolation will always lag a little bit behind but can be smoother than extrapolation.

See Also: Rigidbody.interpolation variable.

	rigidbody.interpolation = RigidbodyInterpolation.Interpolate;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        rigidbody.interpolation = RigidbodyInterpolation.Interpolate;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		rigidbody.interpolation = RigidbodyInterpolation.Interpolate