top of page
Distance-based Particle Control

Problem: Want particles to change color and size as they get farther from a certain point. Also want values to be easily changed within the level.
Solution: Create a scratchpad module that calculates the particle's position and makes changes to user parameters based on its distance from the point.

First, I got variables for color, scale, and radius, as well as data for particle position and simulation position.
Normalize Distance Range compares the particle position to the emitter position and converts that relationship into a 0-1 value.
Lerp nodes use that 0-1 value to blend between the A and B inputs, then Map Set writes the final color and scale back onto the particle.
I turned the variables into user parameters, so they can easily be changed in the level instead of just in the system.

bottom of page