Studio Yotsuba
Back to Node List

Fx Force

fx_force

Adds a force field to an FxState2D document.

Reviewed
Guide available

Input Ports

NameTypeDescription
FX
fx
FxState2D
Required
Input FX state

Output Ports

NameTypeDescription
FX
fx
FxState2D
FX state with the appended force
Force Count
force_count
Int
How many forces are currently stored in the FX state.
Summary
summary
Text
Short summary of the FX state after this force is added.

Parameters

NameTypeDefaultRangeDescription / Options
Kind
kind
Enum
Gravity—

Which force model to add: gravity, wind, drag, turbulence, or vortex.

  • gravityGravity
  • windWind
  • dragDrag
  • turbulenceTurbulence
  • vortexVortex
Vector X
vector_x
Float
0-8–8 / step 0.01

X component of the gravity or wind vector.

Vector Y
vector_y
Float
0.25-8–8 / step 0.01

Y component of the gravity or wind vector.

Center X
center_x
Float
16-512–512 / step 0.1

Center X used by the vortex force.

Center Y
center_y
Float
16-512–512 / step 0.1

Center Y used by the vortex force.

Strength
strength
Float
0.8-8–8 / step 0.01

Overall strength of gravity or vortex forces.

Radius
radius
Float
120–512 / step 0.1

Effective radius used by the vortex force.

Amount
amount
Float
0.250–8 / step 0.01

Amount used by wind, drag, or turbulence.

Scale
scale
Float
80.1–128 / step 0.1

Spatial scale of the turbulence noise.

Speed
speed
Float
10–16 / step 0.01

Animation speed of the turbulence noise.

Overview

Adds a force (gravity, wind, drag, turbulence, or vortex) to FX particles. If the emitter controls how particles appear, a force controls how they move afterward. Forces create rising flames, drifting smoke, and fluttering snow.

Usage tips

  • Chaining forces is the standard pattern. For example, combine upward gravity with a little turbulence for fire, or weak downward gravity with wind and turbulence for snow. Two or three forces give an effect its characteristic motion.
  • When in doubt, add a small amount of turbulence. It quickly makes straight-line movement feel organic, but excessive amount turns the result into noise.

Related nodes

  • fx_emitter_2d — upstream particle emission
  • fx_rasterize — downstream conversion to an image
  • fx_domain_2d — foundation of the lane

Read this first

  • Fx Force changes only particle trajectories.
  • It does not change color or size.
  • The parameters shown depend on kind.
kind Active parameters
Gravity vector_x, vector_y, strength
Wind vector_x, vector_y, amount
Drag amount
Turbulence amount, scale, speed
Vortex center_x, center_y, strength, radius

When to use it

  • To make fire rise:
    • use gravity upward.
  • To move smoke sideways:
    • use wind.
  • To slow particles down:
    • use drag.
  • To add wandering motion:
    • use turbulence.
  • To create a swirl or rotation:
    • use vortex.

Example

Rising flames

  • kind = gravity
  • vector = [0, -0.2]
  • strength = 1.0

Crosswind

  • kind = wind
  • vector = [0.2, 0]
  • amount = 0.8

Wandering motion

  • kind = turbulence
  • amount = 0.25
  • scale = 8
  • speed = 1

Common sequence

FxDomain2D
  -> FxEmitter2D
  -> FxForce(gravity)
  -> FxForce(turbulence)
  -> FxRasterize

The basic way to use forces is to connect several in sequence and add their effects together.

Notes

  • Excessive drag leaves particles almost motionless.
  • Excessive turbulence looks more like noise than smoke or fire.
  • vortex adds tangential rotation around its center; it does not pull particles inward.
Back to Node List