Module technology.sola.engine
Class ParticleEmitterComponent
java.lang.Object
technology.sola.engine.physics.component.particle.ParticleEmitterComponent
- All Implemented Interfaces:
technology.sola.ecs.Component
@NullMarked
public class ParticleEmitterComponent
extends Object
implements technology.sola.ecs.Component
ParticleEmitterComponent is a
Component that contains data for emitting Particles as well as data for
its emitted particles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidemitIfAble(float delta, Vector2D inheritedVelocity) Emits new particles if enough time has elapsed based on the set properties for emission.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface technology.sola.ecs.Component
afterDeserialize
-
Constructor Details
-
ParticleEmitterComponent
public ParticleEmitterComponent()
-
-
Method Details
-
emitIfAble
Emits new particles if enough time has elapsed based on the set properties for emission.- Parameters:
delta- the elapsed delta timeinheritedVelocity- the inherited velocity for emitted particles from the parentEntity
-
emittedParticleIterator
-
movementConfig
- Returns:
- object containing emitted
Particlemovement configuration
-
appearanceConfig
- Returns:
- object containing emitted
Particleappearance configuration
-
emissionConfig
- Returns:
- object containing emitted
Particleemission configuration
-