mass
The calculated mass of the body, usually in kilograms. This can be accessed as a union of PhysicsBody.mass, PhysicsBody.rotationalInertia and PhysicsBody.localCenterOfMass using PhysicsBody.massConfiguration. When this value is overridden with PhysicsBody.massOverride, setting it authors the override value, which persists across mass recalculations.
阅读时间1 分钟最后更新于 23 天前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public float mass { get; set; }