PhysicsBodyComponent.Shape Property
The primary collision shape for this body. Assign any ShapeDefinition subtype: CircleShape, BoxShape, CapsuleShape, PolygonShape, or ChainShape. Setting this marks the body dirty and triggers a rebuild on the next physics step.
public Brine2D.Physics.ShapeDefinition? Shape { get; set; }
Property Value¶
Exceptions¶
System.InvalidOperationException
Thrown when assigning a ChainShape while IsTrigger, IsBullet,
or a non-StaticBodyType is already set.