Validates a shape's parameters, and — when dimension is given — that the
shape belongs to that dimension (§24, §21, §85).
Throws a FourError with INVALID_APPLICATION_STATE; returns nothing on
success. Call it once, when the collider is created: this walks a polygon's
whole outline and is not meant for a per-step path.
dimension is optional so a shape can be checked on its own — in a
serializer, an editor, or a unit test — before any world exists.
Validates a shape's parameters, and — when
dimensionis given — that the shape belongs to that dimension (§24, §21, §85).Throws a
FourErrorwithINVALID_APPLICATION_STATE; returns nothing on success. Call it once, when the collider is created: this walks a polygon's whole outline and is not meant for a per-step path.dimensionis optional so a shape can be checked on its own — in a serializer, an editor, or a unit test — before any world exists.