PhysicsBodyComponent.CenterOfMassOverride Property
Definition¶
Namespace: Brine2D.ECS.Components
Overrides the body-local center of mass offset in pixels.
When set, the physics system applies this after computing mass from shapes.
Set to null to use the geometry-derived center.
Changes on a live body apply immediately.
public System.Nullable<System.Numerics.Vector2> CenterOfMassOverride { get; set; }