Class PolarSettings
java.lang.Object
studio.magemonkey.fabled.api.particle.PolarSettings
Settings for a particle effect
-
Constructor Summary
ConstructorsConstructorDescriptionPolarSettings
(studio.magemonkey.codex.mccore.config.parse.DataSection settings) Loads settings from config dataPolarSettings
(IValue formula, int steps) Sets up a formula for particle effectsPolarSettings
(IValue formula, int steps, int copies, double domain) Sets up a formula for particle effects -
Method Summary
Modifier and TypeMethodDescriptionint
Point3D[]
getPoints
(DirectionHandler direction) Grabs the base points that make up the shape of the effectint
getSteps()
double
getT
(int step) Gets the time step value for the animation stepPoint2D[]
getTrig
(int step) Fetches the trig values for the animationsetOffset
(double x, double y, double z) Sets the offset for the effect
-
Constructor Details
-
PolarSettings
Sets up a formula for particle effects- Parameters:
formula
- formula to usesteps
- the number of steps to apply
-
PolarSettings
Sets up a formula for particle effects- Parameters:
formula
- formula to usesteps
- the number of steps to applycopies
- number of copies to use rotated about the origindomain
- domain of the input values
-
PolarSettings
public PolarSettings(studio.magemonkey.codex.mccore.config.parse.DataSection settings) Loads settings from config data- Parameters:
settings
- settings to load from
-
-
Method Details
-
getTrig
Fetches the trig values for the animation- Parameters:
step
- animation step- Returns:
- trig values
-
getCopies
public int getCopies()- Returns:
- number of copies
-
getSteps
public int getSteps()- Returns:
- number of steps in the formula
-
setOffset
Sets the offset for the effect- Parameters:
x
- X-Axis offsety
- Y-Axis offsetz
- Z-Axis offset- Returns:
- this
-
getPoints
Grabs the base points that make up the shape of the effect- Returns:
- shape points
-
getT
public double getT(int step) Gets the time step value for the animation step- Parameters:
step
- animation step- Returns:
- time step
-