ReadonlybitmapRow-major byte grid of material ids. Length is chunkSize * chunkSize.
Cached marching-squares output, or null if not yet computed or invalidated.
ReadonlycxChunk-grid X coordinate.
ReadonlycyChunk-grid Y coordinate.
Set when the chunk's bitmap changed and colliders need rebuild.
Set when the chunk's bitmap changed and the visual texture needs upload.
One fixed-size tile of the world bitmap.
Chunks are the unit of dirty tracking, GPU texture upload, and Box2D collider rebuild. They are owned by
ChunkedBitmapand exposed read-mostly to higher layers; only the dirty flags andcontourscache may be mutated from outside core.