Class VortexForceData

java.lang.Object
foundry.veil.api.quasar.data.module.force.VortexForceData
All Implemented Interfaces:
EditorAttributeProvider, ParticleModuleData

public final class VortexForceData extends Object implements ParticleModuleData, EditorAttributeProvider
A force that applies a vortex force to a particle.

Vortex forces are forces that are applied in a circular motion around a center point. They are useful for simulating whirlpools or tornadoes. The strength of the force is determined by the strength parameter. The falloff parameter determines how quickly the force falls off with distance. (unused)

  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<VortexForceData> CODEC
  • Constructor Details

    • VortexForceData

      public VortexForceData(org.joml.Vector3dc vortexAxis, org.joml.Vector3dc vortexCenter, boolean localPosition, double range, float strength)
  • Method Details