HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
Functions | |
delegate void | DrawCircleDelegate< in TContext > (Vec2 center, float radius, HexColor color, TContext context) |
Draw a circle. | |
delegate void | DrawPointDelegate< in TContext > (Vec2 p, float size, HexColor color, TContext context) |
Draw a point. | |
delegate void | DrawPolygonDelegate< in TContext > (ReadOnlySpan< Vec2 > vertices, HexColor color, TContext context) |
Draw a closed polygon provided in CCW order. | |
delegate void | DrawSegmentDelegate< in TContext > (Vec2 p1, Vec2 p2, HexColor color, TContext context) |
Draw a line segment. | |
delegate void | DrawSolidCapsuleDelegate< in TContext > (Vec2 p1, Vec2 p2, float radius, HexColor color, TContext context) |
Draw a solid capsule. | |
delegate void | DrawSolidCircleDelegate< in TContext > (Transform transform, float radius, HexColor color, TContext context) |
Draw a solid circle. | |
delegate void | DrawSolidPolygonDelegate< in TContext > (Transform transform, ReadOnlySpan< Vec2 > vertices, float radius, HexColor color, TContext context) |
Draw a solid closed polygon provided in CCW order. | |
delegate void | DrawStringDelegate< in TContext > (Vec2 point, string? text, HexColor color, TContext context) |
Draw a string in world space. | |
delegate void | DrawTransformDelegate< in TContext > (Transform transform, TContext context) |
Draw a transform. | |
delegate void Box2D.Delegates.Generic.DrawCircleDelegate< in TContext > | ( | Vec2 | center, |
float | radius, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a circle.
center | The circle center |
radius | The radius |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawPointDelegate< in TContext > | ( | Vec2 | p, |
float | size, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a point.
p | The point |
size | The size |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawPolygonDelegate< in TContext > | ( | ReadOnlySpan< Vec2 > | vertices, |
HexColor | color, | ||
TContext | context | ||
) |
Draw a closed polygon provided in CCW order.
vertices | The vertices |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawSegmentDelegate< in TContext > | ( | Vec2 | p1, |
Vec2 | p2, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a line segment.
p1 | The first point |
p2 | The second point |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawSolidCapsuleDelegate< in TContext > | ( | Vec2 | p1, |
Vec2 | p2, | ||
float | radius, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a solid capsule.
p1 | The first point |
p2 | The second point |
radius | The radius |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawSolidCircleDelegate< in TContext > | ( | Transform | transform, |
float | radius, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a solid circle.
transform | The transform |
radius | The radius |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawSolidPolygonDelegate< in TContext > | ( | Transform | transform, |
ReadOnlySpan< Vec2 > | vertices, | ||
float | radius, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a solid closed polygon provided in CCW order.
transform | The transform |
vertices | The vertices |
radius | The radius |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawStringDelegate< in TContext > | ( | Vec2 | point, |
string? | text, | ||
HexColor | color, | ||
TContext | context | ||
) |
Draw a string in world space.
point | The point |
text | The string |
color | The color |
context | The context |
TContext | : | class |
delegate void Box2D.Delegates.Generic.DrawTransformDelegate< in TContext > | ( | Transform | transform, |
TContext | context | ||
) |
Draw a transform.
transform | The transform |
context | The context |
Choose your own length scale
TContext | : | class |