Class VectorField
java.lang.Object
foundry.veil.api.quasar.emitters.module.update.VectorField
- All Implemented Interfaces:
EditorAttributeProvider
A 3D vector field implementation. This is used to apply a force to a particle based on its position.
The vector field is defined by a noise function, a strength, and a vector function. The noise function is used to generate a noise value at a given position. The strength is used to scale the noise value. The vector function is used to generate a vector if a custom vector field is desired. If no vector function is provided, a default one is used that generates a vector based on the noise value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CODEC
-
-
Constructor Details
-
VectorField
-
-
Method Details
-
getVector
public org.joml.Vector3d getVector(org.joml.Vector3dc position, org.joml.Vector3d result) -
getVector
public org.joml.Vector3d getVector(org.joml.Vector3dc position) -
renderImGuiAttributes
public void renderImGuiAttributes()Description copied from interface:EditorAttributeProviderRenders all ImGui attributes into the current editor panel.- Specified by:
renderImGuiAttributesin interfaceEditorAttributeProvider
-
noise
-
strength
public float strength()
-