cs
namespaceBlock, sector and world coordinate conversions
Fields
| Name | Type | Description |
|---|---|---|
| sector_size | Vec3i | Sector dimensions in blocks |
Functions
cs.bp2sp(bpos)
Convert a block position to a sector position
| bpos | Vec3i | Block position |
returns Vec3i
cs.w2sp(world)
Convert a world position to a sector position
| world | Vec3 | World position |
returns Vec3i