Class PointAttractorForceModule
java.lang.Object
foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
foundry.veil.api.quasar.emitters.module.force.PointAttractorForceModule
- All Implemented Interfaces:
PositionedForce
,ForceParticleModule
,ParticleModule
-
Field Summary
Fields inherited from class foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
localPosition, position
-
Constructor Summary
ConstructorDescriptionPointAttractorForceModule
(org.joml.Vector3dc position, boolean localPosition, float range, float strength, boolean strengthByDistance, boolean invertDistanceModifier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyForce
(QuasarParticle particle) void
setInvertDistanceModifier
(boolean invertDistanceModifier) void
setRange
(double range) void
setStrength
(float strength) void
setStrengthByDistance
(boolean strengthByDistance) 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
-
PointAttractorForceModule
-
PointAttractorForceModule
public PointAttractorForceModule(org.joml.Vector3dc position, boolean localPosition, float range, float strength, boolean strengthByDistance, boolean invertDistanceModifier)
-
-
Method Details
-
applyForce
-
setRange
public void setRange(double range) -
setStrength
public void setStrength(float strength) -
setStrengthByDistance
public void setStrengthByDistance(boolean strengthByDistance) -
setInvertDistanceModifier
public void setInvertDistanceModifier(boolean invertDistanceModifier)
-