Class DragForceData
java.lang.Object
foundry.veil.api.quasar.data.module.force.DragForceData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class DragForceData
extends Object
implements ParticleModuleData, EditorAttributeProvider
A force that applies a drag force to a particle.
Drag forces are forces that are applied in the opposite direction of the particle's velocity. They are useful for simulating air resistance. The strength of the force is determined by the strength parameter.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(ParticleModuleSet.Builder builder) ModuleType<?> getType()voidRenders all ImGui attributes into the current editor panel.doublestrength()
-
Field Details
-
CODEC
-
-
Constructor Details
-
DragForceData
public DragForceData(double 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
-
strength
public double strength()
-