InitBehavior<DataType, ParticleType>
Interface defining behaviors which update particles when they are first created.
Extends
EmitterBehavior<unknown,DataType,ParticleType>
Type Parameters
DataType
DataType extends BaseParticleData = BaseParticleData
Type describing the data object stored on particles.
ParticleType
ParticleType extends IEmitterParticle<DataType> = IEmitterParticle<DataType>
Type describing the particle used within the emitter.
Accessors
updateOrder
Get Signature
get abstract updateOrder(): BehaviorOrder;Defines at which step of the update cycle the behavior is applied.
initial: Earliest step, useful when other behaviors depend on this behavior.normal: Default step for most behaviors.late: Latest step, useful for behaviors that should override others or depend on their properties.
Returns
Inherited from
Methods
applyConfig()
applyConfig(config): void;Reset the behavior and apply the provided configuration.
Parameters
config
unknown
Behavior configuration.
Returns
void
Inherited from
getConfig()
abstract getConfig(): unknown;Retrieve the current behavior properties as a configuration object. If the behavior is inactive, undefined is returned.
Returns
unknown
Behavior configuration object or undefined if inactive.
Inherited from
init()
init(particle): void;Initialize the particle.
Parameters
particle
ParticleType
Particle to initialize.
Returns
void
reset()
abstract protected reset(): void;Reset the behavior to its default state.
Returns
void