PreUpdate.Physics2DUpdate
Native Player loop system that interpolates 2D physics body poses for the current frame.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.PlayerLoop
- Assembly: UnityEngine.CoreModule
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.