Space
A space is a String which defines which coordinate system is used for directions, currently only used in Add Velocity (Entity Action Type).
world
: The axes are global:x
goes from west (negative) to east (positive),y
from bottom to top, andz
from north to south.local
: The axes are local to the entity:x
goes towards its left side and is always horizontal,y
is pointing towards the top of the entity's head, andz
points in the direction the entity is looking.local_horizontal
: Same aslocal
except it considers the vertical length of the direction the entity is looking to be 0. Thusz
is projected (flattened out) onto the horizontal plane, making it shorter.x
andy
also become shorter by the same amount, andy
is always pointing up. The axes shrink as the direction the entity is looking diverges from being horizontal, so, if the entity is looking straight up or straight down, the axes will have a length of 0, akin to forcingx
,y
, andz
to be 0.local_horizontal_normalized
: Same aslocal_horizontal
but the axes are normalized (brought back to their previous length of 1) if they're of non-zero length.velocity
: The axes are local to the entity's velocity in a way similar tolocal
. If the velocity is purely vertical, the way the entity is pointing is used to determine the direction ofx
andy
instead of the velocity. The axes scale based on how fast the entity is moving, so if it's immobile, the axes will have a length of 0, akin to forcingx
,y
, andz
to be 0.velocity_normalized
: Same asvelocity
, however the axes are normalized, and thus don't depend on the speed of the entity as long as it's moving.velocity_horizontal
: Same asvelocity
, however the upwards velocity is considered to be 0.velocity_horizontal_normalized
: Same asvelocity_horizontal
, however the axes are normalized.