文档

Unity Engine

Unity Engine

massOverride

Selects which of the mass, rotational inertia and center of mass are overridden with the authored values instead of being computed from the attached shapes. Anything without a matching bit is computed from the attached shapes as normal. Only applies to a Dynamic body. See PhysicsBody.massOverride.
阅读时间1 分钟最后更新于 25 天前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsBody.MassOverride massOverride { readonly get; set; }