文档

Unity Engine

Download Unity

Unity Engine

EarlyUpdate.PhysicsResetInterpolatedTransformPosition

Native Player loop system that resets interpolated Rigidbody Transforms to their simulated positions before the frame's physics updates.
阅读时间1 分钟最后更新于 6 天前

Definition

public struct EarlyUpdate.PhysicsResetInterpolatedTransformPosition

Remarks

When a Rigidbody uses interpolation, Unity moves its Transform between physics steps so that motion looks smooth. This system restores those Transforms to their simulated positions before the next physics step, and runs only in frames that include a fixed update.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.