Class WindForceData
java.lang.Object
foundry.veil.api.quasar.data.module.force.WindForceData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class WindForceData
extends Object
implements ParticleModuleData, EditorAttributeProvider
A force that applies a wind force to a particle.
Wind forces are useful for simulating wind. The strength of the force is determined by the strength parameter. The falloff parameter is unused. The direction and speed of the wind is determined by the windDirection and windSpeed parameters. The windDirection parameter is a vector that determines the direction of the wind. The windSpeed parameter determines the speed of the wind. The windSpeed parameter is measured in blocks/tick^2.
-
Field Summary
FieldsFields inherited from interface foundry.veil.api.quasar.data.module.ParticleModuleData
DIRECT_CODEC, INIT_CODEC, INIT_DIRECT_CODEC, RENDER_CODEC, RENDER_DIRECT_CODEC, UPDATE_CODEC, UPDATE_DIRECT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionWindForceData(org.joml.Vector3dc windDirection, float windSpeed, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(ParticleModuleSet.Builder builder) ModuleType<?> getType()voidRenders all ImGui attributes into the current editor panel.floatstrength()org.joml.Vector3dcfloat
-
Field Details
-
CODEC
-
-
Constructor Details
-
WindForceData
public WindForceData(org.joml.Vector3dc windDirection, float windSpeed, float strength)
-
-
Method Details
-
addModules
- Specified by:
addModulesin interfaceParticleModuleData
-
getType
- Specified by:
getTypein interfaceParticleModuleData
-
renderImGuiAttributes
public void renderImGuiAttributes()Description copied from interface:EditorAttributeProviderRenders all ImGui attributes into the current editor panel.- Specified by:
renderImGuiAttributesin interfaceEditorAttributeProvider
-
windDirection
public org.joml.Vector3dc windDirection() -
windSpeed
public float windSpeed() -
strength
public float strength()
-