Class PointForceModule

java.lang.Object
foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
foundry.veil.api.quasar.emitters.module.force.PointForceModule
All Implemented Interfaces:
PositionedForce, ForceParticleModule, ParticleModule

public class PointForceModule extends SimplePositionedForce
A point force is used to apply a force in the direction away from a point.
  • Constructor Details

    • PointForceModule

      public PointForceModule(PointForceData data)
    • PointForceModule

      public PointForceModule(org.joml.Vector3dc point, boolean localPoint, float range, float strength)
  • Method Details

    • applyForce

      public void applyForce(QuasarParticle particle)
    • setRange

      public void setRange(double range)
    • setStrength

      public void setStrength(float strength)