PhysicsBodyComponent.Shape Property
Definition
Namespace: Brine2D.ECS.Components
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.
Property Value
Exceptions
System.InvalidOperationException
Thrown when assigning a ChainShape while IsTrigger, IsBullet,
or a non-StaticBodyType is already set.