Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetInterpolationPoses()

Resets the Transform positions of interpolated and extrapolated Rigidbodies in this PhysicsScene to Rigidbody.position and Transform rotations to Rigidbody.rotation.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void ResetInterpolationPoses()

Remarks

Call this method before simulating to prevent Transform poses of interpolated and extrapolated Rigidbodies from getting synced to the physics system. If multiple PhysicsScene.Simulate calls are to be made this frame, it's enough to call this method only once, before the first simulation.
This method is called automatically for the default PhysicsScene and therefore any manual calls on the Physics.defaultPhysicsScene will fail.
Additional Resources: PhysicsScene.InterpolateBodies.