Name | QuaternionTag |
Prefix | quaternion@ |
Base Type | ElementTag |
Identity Format | The identity format for quaternions is <x>,<y>,<z>,<w>
For example "0,0,0,1" is the Identity quaternion. You can input the word "identity" to get an identity quaternion as well. You can also construct quaternions via tags such as VectorObject.to_axis_angle_quaternion or VectorObject.quaternion_between_vectors. |
Description | A QuaternionTag represents a 3D rotation in an advanced mathematical format.
These are only useful in certain obscure cases, such as Display entities. They have some useful capabilities, such as preventing 'gimbal lock' (a phenomenon where repeatedly rotating something eventually stops working). See https://en.wikipedia.org/wiki/Quaternion for more info about what a quaternion actually is. |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/QuaternionTag.java#L16 |