Skip to content

PhysicsBodyComponent.Mass Property

Definition

Namespace: Brine2D.ECS.Components

Mass of the body in simulation units. Must be greater than zero. Default is 1.

public float Mass { get; set; }

Property Value

System.Single

Remarks

Changes to a live body use a lightweight density re-scale instead of a full rebuild. Has no effect on Static or Kinematic bodies.