Most visited

Recently visited

ParticleEmitter.ParticleModifierFloat

public static class ParticleEmitter.ParticleModifierFloat
extends Object implements ParticleEmitter.ParticleModifier

java.lang.Object
   ↳ com.viro.core.ParticleEmitter.ParticleModifierFloat


ParticleModifier for floating point properties.

Summary

Public constructors

ParticleEmitter.ParticleModifierFloat(float initialMin, float initialMax)

Construct a new ParticleModifier that initializes the property for each particle to a random value chosen from the given uniform distribution.

Public methods

void addInterval(float intervalLength, float endValue)

Add an interval to this ParticleEmitter.ParticleModifier that will move all particles to the given endValue at the end of the interval.

void setFactor(ParticleEmitter.Factor factor)

Set the ParticleEmitter.Factor that defines the units used for the intervals.

Public constructors

ParticleEmitter.ParticleModifierFloat

ParticleEmitter.ParticleModifierFloat (float initialMin, 
                float initialMax)

Construct a new ParticleModifier that initializes the property for each particle to a random value chosen from the given uniform distribution.

Parameters
initialMin float: The minimum value of the uniform distribution.

initialMax float: The maximum value of the uniform distribution.

Public methods

addInterval

void addInterval (float intervalLength, 
                float endValue)

Add an interval to this ParticleEmitter.ParticleModifier that will move all particles to the given endValue at the end of the interval.

Parameters
intervalLength float: The length of the interval. If factor is set to TIME, then this parameter defines the length of the interval in milliseconds; if factor is set to DISTANCE, then this parameter defines the length of the interval in meters that the ParticleEmitter has traveled.

endValue float: The value all particles will interpolate toward across the interval. All particles will finish with this value.

setFactor

void setFactor (ParticleEmitter.Factor factor)

Set the ParticleEmitter.Factor that defines the units used for the intervals. If set to TIME, then each interval will be in milliseconds; if the factor is set to DISTANCE, then the interval will be in meters that the ParticleEmitter has traveled.

Default is TIME.

Parameters
factor ParticleEmitter.Factor: The ParticleEmitter.Factor to use for this modifier.

Hooray!