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
A point force is used to apply a force in the direction away from a point.
-
Field Summary
Fields inherited from class foundry.veil.api.quasar.emitters.module.force.SimplePositionedForce
localPosition, position
-
Constructor Summary
ConstructorDescriptionPointForceModule
(org.joml.Vector3dc point, boolean localPoint, float range, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyForce
(QuasarParticle particle) void
setRange
(double range) void
setStrength
(float strength) 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
-
PointForceModule
-
PointForceModule
public PointForceModule(org.joml.Vector3dc point, boolean localPoint, float range, float strength)
-
-
Method Details
-
applyForce
-
setRange
public void setRange(double range) -
setStrength
public void setStrength(float strength)
-