Class ConstantForceModule
java.lang.Object
foundry.veil.api.quasar.emitters.module.force.ConstantForceModule
- All Implemented Interfaces:
ForceParticleModule
,ParticleModule
-
Constructor Summary
ConstructorDescriptionConstantForceModule
(org.joml.Vector3d acceleration) ConstantForceModule
(org.joml.Vector3dc acceleration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyForce
(QuasarParticle particle) org.joml.Vector3d
void
setStrength
(float strength) 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
-
Constructor Details
-
ConstantForceModule
public ConstantForceModule(org.joml.Vector3dc acceleration) -
ConstantForceModule
public ConstantForceModule(org.joml.Vector3d acceleration)
-
-
Method Details
-
applyForce
- Specified by:
applyForce
in interfaceForceParticleModule
-
setStrength
public void setStrength(float strength) - Specified by:
setStrength
in interfaceForceParticleModule
-
getAcceleration
public org.joml.Vector3d getAcceleration()
-