HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Functions
Box2D.Delegates.Safe Namespace Reference

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.
 

Function Documentation

◆ DrawCircleDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawCircleDelegateSafe ( Vec2  center,
float  radius,
HexColor  color 
)

Draw a circle.

Parameters
centerThe circle center
radiusThe radius
colorThe color

◆ DrawPointDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawPointDelegateSafe ( Vec2  p,
float  size,
HexColor  color 
)

Draw a point.

Parameters
pThe point
sizeThe size
colorThe color

◆ DrawPolygonDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawPolygonDelegateSafe ( ReadOnlySpan< Vec2 >  vertices,
HexColor  color 
)

Draw a closed polygon provided in CCW order.

Parameters
verticesThe vertices
colorThe color

◆ DrawSegmentDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawSegmentDelegateSafe ( Vec2  p1,
Vec2  p2,
HexColor  color 
)

Draw a line segment.

Parameters
p1The first point
p2The second point
colorThe color

◆ DrawSolidCapsuleDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawSolidCapsuleDelegateSafe ( Vec2  p1,
Vec2  p2,
float  radius,
HexColor  color 
)

Draw a solid capsule.

Parameters
p1The first point
p2The second point
radiusThe radius
colorThe color

◆ DrawSolidCircleDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawSolidCircleDelegateSafe ( Transform  transform,
float  radius,
HexColor  color 
)

Draw a solid circle.

Parameters
transformThe transform
radiusThe radius
colorThe color

◆ DrawSolidPolygonDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawSolidPolygonDelegateSafe ( Transform  transform,
ReadOnlySpan< Vec2 >  vertices,
float  radius,
HexColor  color 
)

Draw a solid closed polygon provided in CCW order.

Parameters
transformThe transform
verticesThe vertices
radiusThe radius
colorThe color

◆ DrawStringDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawStringDelegateSafe ( Vec2  position,
string?  text,
HexColor  color 
)

Draw a string in world space.

Parameters
positionThe position of the text
textThe string
colorThe color

◆ DrawTransformDelegateSafe()

delegate void Box2D.Delegates.Safe.DrawTransformDelegateSafe ( Transform  transform)

Draw a transform.

Parameters
transformThe transform

Choose your own length scale