Class WindForceData

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

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

Wind forces are useful for simulating wind. The strength of the force is determined by the strength parameter. The falloff parameter is unused. The direction and speed of the wind is determined by the windDirection and windSpeed parameters. The windDirection parameter is a vector that determines the direction of the wind. The windSpeed parameter determines the speed of the wind. The windSpeed parameter is measured in blocks/tick^2.

  • Field Details

    • CODEC

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

    • WindForceData

      public WindForceData(org.joml.Vector3dc windDirection, float windSpeed, float strength)
  • Method Details