PhysicsBody.MassConfiguration
This holds the mass configuration computed for a PhysicsBody.
Read time 1 minuteLast updated 15 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<MassConfiguration>
public struct PhysicsBody.MassConfiguration : IEquatable<PhysicsBody.MassConfiguration>
Properties
Property | Description |
|---|---|
| center | The position of the shape's centroid relative to the shape's origin. |
| mass | The mass of the shape, usually in kilograms. |
| rotationalInertia | The rotational inertia of the shape about the shape center. |
Static Properties
Property | Description |
|---|---|
| defaultConfiguration | Get a default mass configuration with a mass of one, a rotational inertia of one and a centroid at the origin. |