Class UpdaterRotationOverTime
Updater which sets the particle's size to a fixed value sampled based on the particle's normalized life value
[DataContract("UpdaterRotationOverTime")]
[Display("Rotation Animation", null)]
public class UpdaterRotationOverTime : ParticleUpdater
- Inheritance
-
UpdaterRotationOverTime
- Inherited Members
Constructors
UpdaterRotationOverTime()
Default constructor which also registers the fields required by this updater
public UpdaterRotationOverTime()
Properties
IsPostUpdater
All updaters are called exactly once during each ParticleEmitter's update. Most updaters are called before spawning the new particles for the frame, but post updaters are called after that.
public override bool IsPostUpdater { get; }
Property Value
SamplerMain
The main curve sampler. Particles will change their value based on the sampled values
[DataMember(100)]
[Display("Main", null)]
public ComputeCurveSampler<float> SamplerMain { get; set; }
Property Value
SamplerOptional
Optional sampler. If present, particles will pick a random value between the two sampled curves
[DataMember(200)]
[Display("Optional", null)]
public ComputeCurveSampler<float> SamplerOptional { get; set; }
Property Value
SeedOffset
Seed offset. You can use this offset to bind the randomness to other random values, or to make them completely unrelated
[DataMember(300)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }
Property Value
Methods
PreUpdate()
public override void PreUpdate()
Update(float, ParticlePool)
Updates all particles in the ParticlePool using this updater
public override void Update(float dt, ParticlePool pool)
Parameters
dt
floatDelta time in seconds which has passed since the last update call
pool
ParticlePoolThe target ParticlePool which needs to be updated