babylon.quarks - v1.0.0
    Preparing search index...

    Interface Rotation3DOverLifeOptions

    Optional settings of a Rotation3DOverLife.

    interface Rotation3DOverLifeOptions {
        integration?: RotationIntegration;
    }
    Index
    integration?: RotationIntegration

    How each step's rotation is added to the particle's, 'turn' by default.

    • 'turn': each step turns the particle by the angular velocity's rotation over the step, about the particle's own current axes (rotation = rotation * step).
    • 'angles': as Unity's Rotation over Lifetime with Separate Axes on a 3D-rotated particle. The particle keeps three Euler angles in the angular velocity's order, starting from its birth rotation; each step adds each axis's rate times the step's length to its angle, and the rotation is rebuilt from the sums. A ring tilted at birth and spun about y then keeps its tilt and spins about the Euler y axis, as in Unity, instead of about its own tilted y. Unity's Euler order (z, then x, then y, about fixed axes) is 'YXZ' here.

    'angles' applies when the angular velocity is an EulerGenerator in one of the six Tait–Bryan orders and the particle rotates by quaternion (the mesh render mode); with any other generator the behavior turns as 'turn' does.