isSolid property

bool isSolid
getter/setter pair

Whether the shape is solid or hollow.

If it is solid, intersections will occur even if the other component is fully enclosed by the other hitbox. The intersection point in such cases will be the center of the enclosed ShapeComponent. A hollow shape that is fully enclosed by a solid hitbox will cause an intersection result, but not the other way around.

This field is not related to how the shape should be rendered, see Paint.style for that.

Implementation

bool isSolid = false;