Shape Relative Axis (Expression) — skript-particle
Addon: skript-particle · Category: Expression · Since: 1.0.0
Syntax
[the] (relative|local) (x|y|z)(-| )axis of %shapes%Description
Returns the relative axis of a shape. These are the x, y, z axis of the shape AFTER rotation. These are meant to be used to work within the rotated frame of reference of the shape.
Examples
set {_vX} to {_shape}'s relative x axis
set {_vY} to {_shape}'s relative y axis
set {_vZ} to {_shape}'s relative z axis
rotate shape {_shape} around {_vy} by 90 degrees
set {_vY-offset} to {_shape}'s relative y axis ++ {_shape}'s relative z axis
rotate shape {_shape} around {_vY-offset} by 60 degrees