Package mindustry.entities.effect
Class ParticleEffect
java.lang.Object
mindustry.entities.Effect
mindustry.entities.effect.ParticleEffect
The most essential effect class. Can create particles in various shapes.
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.entities.Effect
Effect.EffectContainer -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbooleanbooleanGives the effect flipping compatability like casing effects.arc.graphics.ColorParticle color.arc.math.InterpParticle color interpolation.arc.graphics.ColorParticle color.floatfloatControls the amount of ticks the effect waits before changing height.floatParticle width and height properties as a ratio of its radius.arc.math.InterpParticle height interpolation.floatParticle width and height properties as a ratio of its radius.arc.math.InterpParticle size/length/radius interpolation.floatfloatfloatarc.graphics.ColorColor of the light each particle emits.floatParticle light properties.floatParticle light properties.booleanfloatRotation offset.floatOffset position of the particle.floatOffset position of the particle.intNumber of particles created.booleanIf true, the particle's length is set in a random range from 0 to length.Sprite to draw.floatControls the amount of ticks the effect waits before changing size.floatControls the initial and final sprite sizes.arc.math.InterpParticle size interpolation.floatControls the initial and final sprite sizes.floatSpin in degrees per tick.floatfloatbooleanWhether the rotation adds with the parentfloatControls the amount of ticks the effect waits before changing width.floatParticle width and height properties as a ratio of its radius.arc.math.InterpParticle width interpolation.floatParticle width and height properties as a ratio of its radius.Fields inherited from class mindustry.entities.Effect
all, baseRotation, clip, followParent, id, layer, layerDuration, lifetime, renderer, rotWithParent, startDelay -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mindustry.entities.Effect
add, at, at, at, at, at, at, at, at, at, baseRotation, create, decal, decal, floorDust, floorDustAngle, followParent, get, layer, layer, render, rotWithParent, rubble, scorch, shake, shake, shockwaveDust, shockwaveDust, shouldCreate, startDelay, wrap, wrap
-
Field Details
-
colorFrom
public arc.graphics.Color colorFromParticle color. -
colorTo
public arc.graphics.Color colorToParticle color. -
particles
public int particlesNumber of particles created. -
randLength
public boolean randLengthIf true, the particle's length is set in a random range from 0 to length. -
casingFlip
public boolean casingFlipGives the effect flipping compatability like casing effects. -
cone
public float cone -
length
public float length -
baseLength
public float baseLength -
interp
public arc.math.Interp interpParticle size/length/radius interpolation. -
sizeInterp
@Nullable public arc.math.Interp sizeInterpParticle size interpolation. Null to use interp. -
colorInterp
@Nullable public arc.math.Interp colorInterpParticle color interpolation. Null to use interp. -
offsetX
public float offsetXOffset position of the particle. -
offsetY
public float offsetYOffset position of the particle. -
lightScl
public float lightSclParticle light properties. -
lightOpacity
public float lightOpacityParticle light properties. -
lightColor
@Nullable public arc.graphics.Color lightColorColor of the light each particle emits. -
spin
public float spinSpin in degrees per tick. -
sizeFrom
public float sizeFromControls the initial and final sprite sizes. -
sizeTo
public float sizeToControls the initial and final sprite sizes. -
sizeChangeStart
public float sizeChangeStartControls the amount of ticks the effect waits before changing size. -
widthChangeStart
public float widthChangeStartControls the amount of ticks the effect waits before changing width. -
heightChangeStart
public float heightChangeStartControls the amount of ticks the effect waits before changing height. -
useRotation
public boolean useRotationWhether the rotation adds with the parent -
offset
public float offsetRotation offset. -
region
Sprite to draw. -
widthFrom
public float widthFromParticle width and height properties as a ratio of its radius. Does nothing to line particles. -
widthTo
public float widthToParticle width and height properties as a ratio of its radius. Does nothing to line particles. -
heightFrom
public float heightFromParticle width and height properties as a ratio of its radius. Does nothing to line particles. -
heightTo
public float heightToParticle width and height properties as a ratio of its radius. Does nothing to line particles. -
widthInterp
@Nullable public arc.math.Interp widthInterpParticle width interpolation. Null to use sizeInterp. -
heightInterp
@Nullable public arc.math.Interp heightInterpParticle height interpolation. Null to use sizeInterp. -
line
public boolean line -
strokeFrom
public float strokeFrom -
strokeTo
public float strokeTo -
lenFrom
public float lenFrom -
lenTo
public float lenTo -
cap
public boolean cap
-
-
Constructor Details
-
ParticleEffect
public ParticleEffect()
-
-
Method Details