Package vazkii.botania.client.fx
Interface BoltParticleOptions.SpreadFunction
- Enclosing class:
BoltParticleOptions
public static interface BoltParticleOptions.SpreadFunction
A SpreadFunction defines how far bolt segments can stray from the straight-line vector, based on parallel
'progress' from start to finish.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BoltParticleOptions.SpreadFunctionA steady linear increase in perpendicular noise.static final BoltParticleOptions.SpreadFunctionA steady linear increase in perpendicular noise, followed by a steady decrease after the halfway point.static final BoltParticleOptions.SpreadFunctionRepresents a unit sine wave from 0 to PI, scaled by progress. -
Method Summary
-
Field Details
-
LINEAR_ASCENT
A steady linear increase in perpendicular noise. -
LINEAR_ASCENT_DESCENT
A steady linear increase in perpendicular noise, followed by a steady decrease after the halfway point. -
SINE
Represents a unit sine wave from 0 to PI, scaled by progress.
-
-
Method Details
-
getMaxSpread
float getMaxSpread(float progress)
-