Module technology.sola.engine
Class ParticleAppearanceConfiguration
java.lang.Object
technology.sola.engine.physics.component.particle.ParticleConfiguration
technology.sola.engine.physics.component.particle.ParticleAppearanceConfiguration
ParticleAppearanceConfiguration contains configuration for the appearance properties of emitted
Particles.-
Method Summary
Modifier and TypeMethodDescriptionfloatmaxSize()floatminSize()setColorFunction(ParticleColorFunction colorFunction) Updates theParticleColorFunctionfor newly emittedParticles.setShapeFunction(ParticleShapeFunction shapeFunction) Updates theParticleShapeFunctionfor newly emittedParticles.setSize(float size) Updates the size for newly emittedParticles to be a fixed value.setSizeBounds(float minSize, float maxSize) Updates the minimum and maximum size values for newly emittedParticles.Methods inherited from class technology.sola.engine.physics.component.particle.ParticleConfiguration
done
-
Method Details
-
minSize
public float minSize()- Returns:
- the minimum size for newly emitted
Particles
-
maxSize
public float maxSize()- Returns:
- the maximum size for newly emitted
Particles
-
setSizeBounds
Updates the minimum and maximum size values for newly emittedParticles.- Parameters:
minSize- the minimum size for new particlesmaxSize- the maximum size for new particles- Returns:
- this
-
setSize
Updates the size for newly emittedParticles to be a fixed value.- Parameters:
size- the size for new particles- Returns:
- this
-
colorFunction
- Returns:
- function to generate a
Particle's color
-
setColorFunction
Updates theParticleColorFunctionfor newly emittedParticles.- Parameters:
colorFunction- the new color function for new particles- Returns:
- this
-
shapeFunction
- Returns:
- function to generate a
Particle'sParticleShape
-
setShapeFunction
Updates theParticleShapeFunctionfor newly emittedParticles.- Parameters:
shapeFunction- the new shape function for new particles- Returns:
- this
-