vector

Table,

Used as both positions and offsets in the Minetest API. There are some helper functions that operate on vectors:

Coordinate System


Minetest uses a left-handed coordinate system. In the world coordinate system, the x-direction is to the east (according to the sunrise), the y-direction is up, and the z-direction is north. In the player/camera coordinate system (used by e.g. Player:set_eye_offset, the x-direction is to the right, the y-direction is up, and the z-direction is forward.

Interestingly, though, object rotation (as reported by LuaEntitySAO:set_rotation) is right-handed.