search API (or start typing anywhere)
ShapeDrawer
differ.ShapeDrawer
To implement your own debug drawing class, you only need to override drawLine function and implement it the rest is handled internally. You can override specifics if you want, but it’s not required
class
Methods
drawCircle
drawCircle(circle:differ.shapes.Circle) : Void
Draw a circle
Shape
drawLine
drawLine(p0x:Float, p0y:Float, p1x:Float, p1y:Float, startPoint:Bool) : Void
Draw a line between p0 and p1. Implement this function at minimum in custom drawing handlers drawPoint
drawPoint(x:Float, y:Float, size:Float) : Void
drawPolygon
drawPolygon(poly:differ.shapes.Polygon) : Void
Draw a
Polygon
drawShape
drawShape(shape:differ.shapes.Shape) : Void
Draw a
Shape
, it will determine the type and draw it for you.
drawShapeCollision
drawShapeCollision(c:differ.data.ShapeCollision, length:Float) : Void
new
new() : Void