-
- All Implemented Interfaces:
public final class EmitterConfigEmitterConfig class that will gold the Emitter configuration and amount of particles that will be created over certain time
-
-
Field Summary
Fields Modifier and Type Field Description private LongemittingTimeprivate FloatamountPerMs
-
Constructor Summary
Constructors Constructor Description EmitterConfig(Emitter emitter)
-
Method Summary
Modifier and Type Method Description final LonggetEmittingTime()Max time allowed to emit in milliseconds final UnitsetEmittingTime(Long emittingTime)Max time allowed to emit in milliseconds final FloatgetAmountPerMs()Amount of time needed for each particle creation in milliseconds final UnitsetAmountPerMs(Float amountPerMs)Amount of time needed for each particle creation in milliseconds final EmitterConfigmax(Integer amount)Amount of particles created over the duration that is set final EmitterConfigperSecond(Integer amount)Amount of particles that will be created per second -
-
Constructor Detail
-
EmitterConfig
EmitterConfig(Emitter emitter)
-
-
Method Detail
-
getEmittingTime
final Long getEmittingTime()
Max time allowed to emit in milliseconds
-
setEmittingTime
final Unit setEmittingTime(Long emittingTime)
Max time allowed to emit in milliseconds
-
getAmountPerMs
final Float getAmountPerMs()
Amount of time needed for each particle creation in milliseconds
-
setAmountPerMs
final Unit setAmountPerMs(Float amountPerMs)
Amount of time needed for each particle creation in milliseconds
-
max
final EmitterConfig max(Integer amount)
Amount of particles created over the duration that is set
-
perSecond
final EmitterConfig perSecond(Integer amount)
Amount of particles that will be created per second
-
-
-
-