Module veloren_common::region

source ·

Structs§

  • Region consisting of a bitset of entities within it
  • A region system that tracks where entities are.

Enums§

Constants§

  • Offsets to iterate though neighbors Counter-clockwise order
  • Bitshift between region and world pos, i.e. log2(REGION_SIZE)
  • Region Size in blocks
  • How far can an entity roam outside its region before it is switched over to the neighboring one In units of blocks (i.e. world pos) Used to prevent rapid switching of entities between regions

Functions§