Most visited

Recently visited

ParticleEmitter.ParticleModifierVector

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

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


ParticleModifier for Vector properties.

Summary

Public constructors

ParticleEmitter.ParticleModifierVector(Vector initialMin, Vector 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, Vector 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.ParticleModifierVector

ParticleEmitter.ParticleModifierVector (Vector initialMin, 
                Vector initialMax)

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

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

initialMax Vector: The maximum value of the uniform distribution.

Public methods

addInterval

void addInterval (float intervalLength, 
                Vector 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 Vector: 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!