veloren_
common
0.10.0
Module region
Module Items
Structs
Enums
Constants
Functions
In crate veloren_
common
veloren_common
Module
region
Copy item path
Source
Structs
§
Region
Region consisting of a bitset of entities within it
Region
Map
A region system that tracks where entities are.
Enums
§
Event
Constants
§
NEIGHBOR_
OFFSETS
🔒
Offsets to iterate though neighbors Counter-clockwise order
REGION_
LOG2
🔒
Bitshift between region and world pos, i.e. log2(REGION_SIZE)
REGION_
SIZE
Region Size in blocks
TETHER_
LENGTH
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
§
region_
in_
vd
Note vd is in blocks in this case
regions_
in_
vd