# SpeedLimitByLife模块
# 概述
SpeedLimitByLife(速度限制变化模块),用于设置粒子生命周期中速度的限制。
# 属性描述
属性 | 功能 | 类型 |
---|---|---|
separateAxes | 是否在 XYZ 上个轴上分别限制速度。 | boolean |
x | 如果 separateAxes 为true时,表示 X 轴速度大小下限值(目标值)。 如果 separateAxes 为false时,表示 XYZ 三个轴速度大小下限值,在工具中显示为SpeedLimit。 | engine.Particle.AdvancedProperty.ConstantProperty engine.Particle.AdvancedProperty.TwoConstantsProperty engine.Particle.AdvancedProperty.CurveProperty engine.Particle.AdvancedProperty.TwoCurvesProperty |
y | 如果 separateAxes 为true时,表示 Y 轴速度大小下限值(目标值)。 | engine.Particle.AdvancedProperty.ConstantProperty engine.Particle.AdvancedProperty.TwoConstantsProperty engine.Particle.AdvancedProperty.CurveProperty engine.Particle.AdvancedProperty.TwoCurvesProperty |
z | 如果 separateAxes 为true时,表示 Z 轴速度大小下限值(目标值)。 | engine.Particle.AdvancedProperty.ConstantProperty engine.Particle.AdvancedProperty.TwoConstantsProperty engine.Particle.AdvancedProperty.CurveProperty engine.Particle.AdvancedProperty.TwoCurvesProperty |
dampen | 阻尼值,可在0到1之间取值,越大表示速度降的越快。 | number |