Shape Orientation (Expression) — skript-particle

Addon: skript-particle · Category: Expression · Since: 1.0.0

Syntax

[the] orientation of %shapes%

Description

The orientation of a shape. This is the rotation that is applied to the shape before drawing. Changing this will rotate the shape accordingly. Resetting or deleting it will set it back to the default orientation of (0, 0, 0, 1). The expression returns a quaternion. You can use the quaternion and axis angle functions or the rotation expression to create an orientation.

Examples

set {_shape}'s orientation to quaternion(0, 0, 0, 1)
set {_shape}'s orientation to axisAngle(90, 0, 1, 0)
set {_shape}'s orientation to {_shape2}'s orientation
reset {_shape}'s orientation

View source