PreUpdate.PhysicsUpdate
Native Player loop system that interpolates 3D physics body positions for the current frame.
阅读时间1 分钟最后更新于 5 天前
Definition
- Type: Struct
- Namespace: UnityEngine.PlayerLoop
- Assembly: UnityEngine.CoreModule
public struct PreUpdate.PhysicsUpdate
Remarks
This system moves the Transforms of Rigidbody components that use interpolation, so that their motion looks smooth between physics steps. If Physics.simulationMode is set to update in the Update loop, there's nothing to interpolate.
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.