Rotation (Expression) — skript-particle
Addon: skript-particle · Category: Expression · Since: 1.0.0
Syntax
[the|a] rotation (from|around) [the] [vector] %vector% (with|by) [[the|an] angle [of]] %number% [degrees|radians]Description
Describes a rotation around a vector by a given angle, or from one vector to another. An alternative to the `axisAngle` and `quaternion` functions. Returns a quaternion.
Examples
set {_rotation} to rotation around vector(1, 0, 0) by an angle of 90 degrees
set {_rotation} to a rotation around vector(1, 1, 1) by 1.57 radians
set {_rotation} to a rotation from vector(1, 0, 0) to vector(0, 1, 0)
set {_rotation} to a rotation between vector(1, 0, 1) and vector(0, 1, 2)