文档

Unity Engine

Unity Engine

PreUpdate.Physics2DUpdate

Native Player loop system that interpolates 2D physics body poses for the current frame.
阅读时间1 分钟最后更新于 5 天前

Definition

public struct PreUpdate.Physics2DUpdate

Remarks

This system moves the Transforms of Rigidbody2D components that use interpolation, so that their motion looks smooth between physics steps.
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.