Class VectorFieldForceData
java.lang.Object
foundry.veil.api.quasar.data.module.force.VectorFieldForceData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class VectorFieldForceData
extends Object
implements ParticleModuleData, EditorAttributeProvider
A force that applies the force created in a vector field to a particle.
Vector fields are useful for creating complex forces that vary over time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VectorFieldForceData> Fields 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.floatstrength()
-
Field Details
-
CODEC
-
-
Constructor Details
-
VectorFieldForceData
-
-
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
-
vectorField
-
strength
public float strength()
-