# RotationByLife module

# Overview

RotationByLife (rotation change module), used to set the change of rotation in the life cycle of the particle.

image.png

If the attribute type is Curve or TwoCurves, you can click on the curve and drag the Particle Curve at the bottom of the inspector upwards, and the curve editor will appear. You can right-click to increase the key frame and adjust the curve change.

# Property description

Property Function Type
separateAxes Whether to control the rotation of particles separately on the XYZ axis. boolean
x If separateAxes is true, it indicates the angular velocity of rotation in the X-axis direction. engine.Particle.AdvancedProperty.ConstantProperty
engine.Particle.AdvancedProperty.TwoConstantsProperty
engine.Particle.AdvancedProperty.CurveProperty
engine.Particle.AdvancedProperty.TwoCurvesProperty
y If separateAxes is true, it means the angular velocity of rotation in the Y-axis direction. engine.Particle.AdvancedProperty.ConstantProperty
engine.Particle.AdvancedProperty.TwoConstantsProperty
engine.Particle.AdvancedProperty.CurveProperty
engine.Particle.AdvancedProperty.TwoCurvesProperty
z Indicates the angular velocity of rotation in the Z-axis direction. If separateAxes is false, the tool displays Rotation. engine.Particle.AdvancedProperty.ConstantProperty
engine.Particle.AdvancedProperty.TwoConstantsProperty
engine.Particle.AdvancedProperty.CurveProperty
engine.Particle.AdvancedProperty.TwoCurvesProperty