기술 자료

Unity Engine

Unity Engine

ResetCenterOfMass()

Reset the center of mass of the rigidbody.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void ResetCenterOfMass()

Remarks

Computes the actual center of mass of the rigidbody from all the colliders attached, and stores it. After calling this function, the center of mass will get updated automatically after any modification to the rigidbody.