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
ConstructorsConstructorDescriptionVortexForceModule(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyForce(QuasarParticle particle) org.joml.Vector3dcvoidsetRange(double range) voidsetStrength(float strength) voidsetVortexAxis(double x, double y, double z) voidsetVortexAxis(org.joml.Vector3dc axis) Methods inherited from class foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
getDeltaPosition, getPosition, isLocalPosition, setForceOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundry.veil.api.quasar.emitters.module.ParticleModule
onRemoveMethods 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)
-