Manual     Reference     Scripting  
  
Scripting > Enumerations > RigidbodyInterpolation   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • RigidbodyInterpolation
  • All Members
  • Values
  • Extrapolate
  • Interpolate
  • None

RigidbodyInterpolation.Interpolate  

RigidbodyInterpolation.Interpolate

Description

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

See Also: Rigidbody.interpolation variable.

JavaScripts
rigidbody.interpolation = RigidbodyInterpolation.Interpolate;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
rigidbody.interpolation = RigidbodyInterpolation.Interpolate;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
rigidbody.interpolation = RigidbodyInterpolation.Interpolate