HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
Functions | |
delegate void | DrawCircleDelegateSafe (Vec2 center, float radius, HexColor color) |
Draw a circle. | |
delegate void | DrawPointDelegateSafe (Vec2 p, float size, HexColor color) |
Draw a point. | |
delegate void | DrawPolygonDelegateSafe (ReadOnlySpan< Vec2 > vertices, HexColor color) |
Draw a closed polygon provided in CCW order. | |
delegate void | DrawSegmentDelegateSafe (Vec2 p1, Vec2 p2, HexColor color) |
Draw a line segment. | |
delegate void | DrawSolidCapsuleDelegateSafe (Vec2 p1, Vec2 p2, float radius, HexColor color) |
Draw a solid capsule. | |
delegate void | DrawSolidCircleDelegateSafe (Transform transform, float radius, HexColor color) |
Draw a solid circle. | |
delegate void | DrawSolidPolygonDelegateSafe (Transform transform, ReadOnlySpan< Vec2 > vertices, float radius, HexColor color) |
Draw a solid closed polygon provided in CCW order. | |
delegate void | DrawStringDelegateSafe (Vec2 position, string? text, HexColor color) |
Draw a string in world space. | |
delegate void | DrawTransformDelegateSafe (Transform transform) |
Draw a transform. | |
delegate void Box2D.Delegates.Safe.DrawCircleDelegateSafe | ( | Vec2 | center, |
float | radius, | ||
HexColor | color | ||
) |
Draw a circle.
center | The circle center |
radius | The radius |
color | The color |
delegate void Box2D.Delegates.Safe.DrawPointDelegateSafe | ( | Vec2 | p, |
float | size, | ||
HexColor | color | ||
) |
Draw a point.
p | The point |
size | The size |
color | The color |
delegate void Box2D.Delegates.Safe.DrawPolygonDelegateSafe | ( | ReadOnlySpan< Vec2 > | vertices, |
HexColor | color | ||
) |
Draw a closed polygon provided in CCW order.
vertices | The vertices |
color | The color |
delegate void Box2D.Delegates.Safe.DrawSegmentDelegateSafe | ( | Vec2 | p1, |
Vec2 | p2, | ||
HexColor | color | ||
) |
Draw a line segment.
p1 | The first point |
p2 | The second point |
color | The color |
delegate void Box2D.Delegates.Safe.DrawSolidCapsuleDelegateSafe | ( | Vec2 | p1, |
Vec2 | p2, | ||
float | radius, | ||
HexColor | color | ||
) |
Draw a solid capsule.
p1 | The first point |
p2 | The second point |
radius | The radius |
color | The color |
delegate void Box2D.Delegates.Safe.DrawSolidCircleDelegateSafe | ( | Transform | transform, |
float | radius, | ||
HexColor | color | ||
) |
Draw a solid circle.
transform | The transform |
radius | The radius |
color | The color |
delegate void Box2D.Delegates.Safe.DrawSolidPolygonDelegateSafe | ( | Transform | transform, |
ReadOnlySpan< Vec2 > | vertices, | ||
float | radius, | ||
HexColor | color | ||
) |
Draw a solid closed polygon provided in CCW order.
transform | The transform |
vertices | The vertices |
radius | The radius |
color | The color |
delegate void Box2D.Delegates.Safe.DrawStringDelegateSafe | ( | Vec2 | position, |
string? | text, | ||
HexColor | color | ||
) |
Draw a string in world space.
position | The position of the text |
text | The string |
color | The color |
delegate void Box2D.Delegates.Safe.DrawTransformDelegateSafe | ( | Transform | transform | ) |
Draw a transform.
transform | The transform |
Choose your own length scale