Skip to content

CapsuleShape Class

Definition

Namespace: Brine2D.Physics

C#
public sealed record CapsuleShape : Brine2D.Physics.ShapeDefinition, System.IEquatable<Brine2D.Physics.CapsuleShape>

Inheritance System.ObjectShapeDefinition → CapsuleShape

Implements System.IEquatable<CapsuleShape>

Constructors
CapsuleShape\(Vector2, Vector2, float\)
Properties
Center1 First center point in local body space \(pixels\).
Center2 Second center point in local body space \(pixels\).
Offset Local-space offset applied to both center points, shifting the entire capsule relative to the body origin in pixels. Default is System.Numerics.Vector2.Zero.