RigidbodyInterpolation.Interpolate

RigidbodyInterpolation.Interpolate

Description

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

See Also: Rigidbody.interpolation variable.

JavaScript
    rigidbody.interpolation = RigidbodyInterpolation.Interpolate;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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