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
Modifier and TypeFieldDescriptionfloat
boolean
boolean
Gives the effect flipping compatability like casing effects.float
Particle size/length/radius interpolation.float
float
float
float
float
boolean
float
Rotation offset.float
float
int
boolean
Sprite to draw.float
Controls the initial and final sprite sizes.Particle size interpolation.float
Controls the initial and final sprite sizes.float
Spin in degrees per tick.float
float
boolean
Whether the rotation adds with the parentFields inherited from class mindustry.entities.Effect
all, baseRotation, clip, followParent, id, layer, layerDuration, lifetime, renderer, rotWithParent, startDelay
-
Constructor Summary
-
Method Summary
-
Field Details
-
colorFrom
-
colorTo
-
particles
public int particles -
randLength
public boolean randLength -
casingFlip
public boolean casingFlipGives the effect flipping compatability like casing effects. -
cone
public float cone -
length
public float length -
baseLength
public float baseLength -
interp
Particle size/length/radius interpolation. -
sizeInterp
Particle size interpolation. Null to use interp. -
offsetX
public float offsetX -
offsetY
public float offsetY -
lightScl
public float lightScl -
lightOpacity
public float lightOpacity -
lightColor
-
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. -
useRotation
public boolean useRotationWhether the rotation adds with the parent -
offset
public float offsetRotation offset. -
region
Sprite to draw. -
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