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

public class PointAttractorForceModule extends SimplePositionedForce
  • Constructor Details

    • PointAttractorForceModule

      public PointAttractorForceModule(PointAttractorForceData data)
    • PointAttractorForceModule

      public PointAttractorForceModule(org.joml.Vector3dc position, boolean localPosition, float range, float strength, boolean strengthByDistance, boolean invertDistanceModifier)
  • Method Details

    • applyForce

      public void applyForce(QuasarParticle particle)
    • setRange

      public void setRange(double range)
    • setStrength

      public void setStrength(float strength)
    • setStrengthByDistance

      public void setStrengthByDistance(boolean strengthByDistance)
    • setInvertDistanceModifier

      public void setInvertDistanceModifier(boolean invertDistanceModifier)