Class VortexForceData
java.lang.Object
foundry.veil.api.quasar.data.module.force.VortexForceData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class VortexForceData
extends Object
implements ParticleModuleData, EditorAttributeProvider
A force that applies a vortex force to a particle.
Vortex forces are forces that are applied in a circular motion around a center point. They are useful for simulating whirlpools or tornadoes. The strength of the force is determined by the strength parameter. The falloff parameter determines how quickly the force falls off with distance. (unused)
-
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
ConstructorsConstructorDescriptionVortexForceData(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(ParticleModuleSet.Builder builder) ModuleType<?> getType()booleandoublerange()voidRenders all ImGui attributes into the current editor panel.floatstrength()org.joml.Vector3dcorg.joml.Vector3dc
-
Field Details
-
CODEC
-
-
Constructor Details
-
VortexForceData
public VortexForceData(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, 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
-
vortexAxis
public org.joml.Vector3dc vortexAxis() -
vortexCenter
public org.joml.Vector3dc vortexCenter() -
localPosition
public boolean localPosition() -
range
public double range() -
strength
public float strength()
-