跳转到内容

distanceToCell

此内容尚不支持你的语言。

distanceToCell(cell, x, z): number

Defined in: residency/cells.ts:112

Ground-plane distance from a point to a cell’s box; zero inside it.

To the BOX rather than to the cell’s centre, because a centre answers the same for a source standing on a diagonal corner as for one a whole cell away, and that is where holes open in a world laid out on a grid.

WorldCell

number

number

number