Entity.chunk

Gets the 16x16 chunk the entity is in. A bigger chunk can be obtained by right-shifting the vector by the required amount.

class Entity
final @property @safe
chunk
()

Examples

auto chunk = entity.chunk;
auto chunk128 = entity.chunk >> 3;

Meta