Module technology.sola.engine
Class ParticleMovementConfiguration
java.lang.Object
technology.sola.engine.physics.component.particle.ParticleConfiguration
technology.sola.engine.physics.component.particle.ParticleMovementConfiguration
ParticleMovementConfiguration contains configuration for the movement properties of emitted
Particles.-
Method Summary
Modifier and TypeMethodDescriptionfloatfloatmaxSpeed()floatminSpeed()@Nullable ParticleNoisenoise()setInheritedVelocityPercentage(float inheritedVelocityPercentage) Updates the percentage of velocity inheritance from the owningEntity.setNoise(@Nullable ParticleNoise noise) Sets theParticleNoiseconfiguration for this emitter.setSpeed(float speed) Sets the speed for newly emittedParticles.setSpeedBounds(float minSpeed, float maxSpeed) Updates the minimum and maximum speed values for newly emittedParticles.Methods inherited from class technology.sola.engine.physics.component.particle.ParticleConfiguration
done
-
Method Details
-
minSpeed
public float minSpeed()- Returns:
- the minimum speed for newly emitted
Particles
-
maxSpeed
public float maxSpeed()- Returns:
- the maximum speed for newly emitted
Particles
-
setSpeedBounds
Updates the minimum and maximum speed values for newly emittedParticles.- Parameters:
minSpeed- the minimum speed for new particlesmaxSpeed- the maximum speed for new particles- Returns:
- this
-
setSpeed
Sets the speed for newly emittedParticles.- Parameters:
speed- the speed for new particles- Returns:
- this
-
inheritedVelocityPercentage
public float inheritedVelocityPercentage()- Returns:
- the percentage of the owning
Entity's velocity to inherit from
-
setInheritedVelocityPercentage
public ParticleMovementConfiguration setInheritedVelocityPercentage(float inheritedVelocityPercentage) Updates the percentage of velocity inheritance from the owningEntity.- Parameters:
inheritedVelocityPercentage- new percentage of velocity inheritance from the owningEntity- Returns:
- this
-
noise
- Returns:
- the
ParticleNoiseconfiguration for this emitter, ornullif no noise is applied
-
setNoise
Sets theParticleNoiseconfiguration for this emitter.- Parameters:
noise- the newParticleNoiseconfiguration, ornullto disable noise- Returns:
- this
-