Version: 2023.1

PhysicsScene.ResetInterpolationPoses

切换到手册
public void ResetInterpolationPoses ();

描述

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.

See Also: PhysicsScene.InterpolateBodies.