Nebula
World partition

ChunkLattice

The built-in IChunkGridGeometry: a lattice of equal boxes, either one layer of columns centred on y = 0 (Planar) or a volumetric lattice, cell (x, y, z) spanning [x, x + 1) cells on each axis.

generated from the sources
public sealed class ChunkLattice : IChunkGridGeometry

The built-in IChunkGridGeometry: a lattice of equal boxes, either one layer of columns centred on y = 0 (Planar) or a volumetric lattice, cell (x, y, z) spanning [x, x + 1) cells on each axis.

Constructors

ChunkLattice

public ChunkLattice(Vector3 cellSize, bool planar);

Properties

CellSize

public Vector3 CellSize { get; }

Planar

public bool Planar { get; }

LeadStep

public float LeadStep { get; }

Methods

CellOf

public Vector3Int CellOf(Vector3 local);

BoundsOf

public Bounds BoundsOf(Vector3Int cell);

Normalize

public Vector3Int Normalize(Vector3Int cell);

Neighborhood

public void Neighborhood(Vector3Int cell, int ring, List<Vector3Int> into);

IdOf

public ulong IdOf(string gridKey, Vector3Int cell);

On this page