Unity API之Physics.SyncTransforms

Physics.SyncTransforms

dll
UnityEngine.PhysicsModule

namespace
UnityEngine

class
Physics

method
public static void SyncTransforms();

Description
Applies Transform changes to the physics engine.
When a Transform component changes, any Rigidbody or Collider on the Transform or its children may need to be repositioned, rotated, or scaled according to the Transform's changes.
Use this function to manually flush these changes to the physics engine.

Guess you like

Origin blog.csdn.net/weixin_44737486/article/details/124710303