PathHitbox constructor
PathHitbox({})
With this constructor you create a PathHitbox from all the closed
contours of the path.
See PathComponent.new for the sampling, tolerance and filter parameters. Fewer vertices make the collision detection cheaper, so use the highest sampling that still follows the path closely enough.