Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

PhysicsScene.ResetInterpolationPoses

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ResetInterpolationPoses();

Description

Resets the Transform positions of interpolated and extrapolated Rigidbodies in this PhysicsScene to Rigidbody.position and Transform rotations to Rigidbody.rotation.

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 defaultPhysicsScene will fail.

Additional resources: PhysicsScene.InterpolateBodies.