Class VortexForceModule
java.lang.Object
foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
foundry.veil.api.quasar.emitters.module.force.VortexForceModule
- All Implemented Interfaces:
PositionedForce
,ForceParticleModule
,ParticleModule
-
Field Summary
Fields inherited from class foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
localPosition, position
-
Constructor Summary
ConstructorDescriptionVortexForceModule
(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyForce
(QuasarParticle particle) org.joml.Vector3dc
void
setRange
(double range) void
setStrength
(float strength) void
setVortexAxis
(double x, double y, double z) void
setVortexAxis
(org.joml.Vector3dc axis) Methods inherited from class foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
getDeltaPosition, getPosition, isLocalPosition, setForceOrigin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.quasar.emitters.module.ParticleModule
onRemove
Methods inherited from interface foundry.veil.api.quasar.emitters.module.force.PositionedForce
setForceOrigin
-
Constructor Details
-
VortexForceModule
-
VortexForceModule
public VortexForceModule(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, float strength)
-
-
Method Details
-
applyForce
-
getVortexAxis
public org.joml.Vector3dc getVortexAxis() -
setVortexAxis
public void setVortexAxis(double x, double y, double z) -
setVortexAxis
public void setVortexAxis(org.joml.Vector3dc axis) -
setRange
public void setRange(double range) -
setStrength
public void setStrength(float strength)
-