Skip to content

function positionToChunkIndex (shared-side)

Available since version: 0.3.3

This function will convert given 3d world position to chunk index.

Declaration

Vec2i positionToChunkIndex(Vec3 position)

Parameters

  • Vec3 position: the 3d world position.

Returns Vec2i

Returns the chunk index.