Class PointForceData
java.lang.Object
foundry.veil.api.quasar.data.module.force.PointForceData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class PointForceData
extends Object
implements ParticleModuleData, EditorAttributeProvider
A point force is used to apply a force in the direction away from a point.
-
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
ConstructorsConstructorDescriptionPointForceData(org.joml.Vector3dc point, boolean localPoint, float range, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(ParticleModuleSet.Builder builder) ModuleType<?> getType()booleanorg.joml.Vector3dcpoint()floatrange()voidRenders all ImGui attributes into the current editor panel.floatstrength()
-
Field Details
-
CODEC
-
-
Constructor Details
-
PointForceData
public PointForceData(org.joml.Vector3dc point, boolean localPoint, float range, float strength)
-
-
Method Details
-
addModules
- Specified by:
addModulesin interfaceParticleModuleData
-
getType
- Specified by:
getTypein interfaceParticleModuleData
-
point
public org.joml.Vector3dc point() -
localPoint
public boolean localPoint() -
range
public float range() -
strength
public float strength() -
renderImGuiAttributes
public void renderImGuiAttributes()Description copied from interface:EditorAttributeProviderRenders all ImGui attributes into the current editor panel.- Specified by:
renderImGuiAttributesin interfaceEditorAttributeProvider
-