PhysicsBodyComponent.BodyType Property
Definition¶
Namespace: Brine2D.ECS.Components
How this body participates in physics simulation.
Changes to a live body use a lightweight B2.BodySetType call — no full rebuild.
Note that switching to Dynamic re-applies mass from shapes.
public Brine2D.Physics.PhysicsBodyType BodyType { get; set; }
Property Value¶
Exceptions¶
System.InvalidOperationException
Thrown when changing away from Static while
Shape is a ChainShape.