BoxShape Class
public sealed record BoxShape : Brine2D.Physics.ShapeDefinition, System.IEquatable<Brine2D.Physics.BoxShape>
Inheritance System.Object → ShapeDefinition → BoxShape
Implements System.IEquatable<BoxShape>
| Constructors | |
|---|---|
| BoxShape(float, float) |
| Properties | |
|---|---|
| Angle | Rotation of the box in radians relative to the body's local space. Default is 0 (axis-aligned). |
| Offset | Local-space offset of the box center from the body origin in pixels. Use this to position the box away from the body pivot on compound bodies. Default is System.Numerics.Vector2.Zero. |