render method
Renders the polygons of the hitbox, since those are what collides.
Implementation
@override
void render(Canvas canvas) {
if (renderShape) {
if (hasPaintLayers) {
for (final paint in paintLayers) {
canvas.drawPath(polygonsPath, paint);
}
} else {
canvas.drawPath(polygonsPath, paint);
}
}
}