
What Is a Custom Attractor Force in UE4 Niagara?
This Unreal Engine 4 tutorial demonstrates how to build a custom attractor force module in Niagara using a sphere to disturb particle velocity with curl noise. Instead of uniform random motion, particles inside the sphere’s area of influence react organically while shifting color based on their velocity.
You can use this setup for interactive particles, magic fields, sci-fi energy, abstract motion, and environmental effects that respond to a moving object in real time.
More Niagara techniques: Lightning Ball FX · Clouds · Rays Material FX




























































How Is the Custom Attractor Force Structured?
The effect combines a scaled particle grid emitter with a custom Niagara script that masks curl noise to a sphere volume, exposes the sphere position to Blueprint, and drives particle color from velocity.
| Component | Role in the Effect | Key Controls & Behavior |
|---|---|---|
| Emitter Grid | Spawns and arranges the base particles | Adjusts particle size and scales the grid to fit the interactive area |
| Curl Noise | Disturbs particle velocity organically | Applies directional turbulence instead of basic noise within the active zone |
| Custom Sphere Mask | Limits the force to a spherical region | Uses custom float and vector inputs for radius and position; particles outside the radius are scaled down or removed |
| Blueprint User Parameter | Enables real-time interaction | Exposes the sphere location as a user parameter for dynamic Blueprint updates |
| Velocity Color Scale | Adds dynamic visual feedback | Connects particle velocity to a color scale so color shifts with speed and movement |
Custom Attractor Force Breakdown
- Emitter & Grid Setup: Create a custom emitter with a simple grid of particles, then adjust particle size and scale the grid to match the target area.
- Applying Curl Noise: Use curl noise rather than basic noise to distort particle velocity within the defined region for smoother, more organic motion.
- Custom Radius Masking: Use a custom script with float and vector values to define the sphere radius and position so curl noise only affects the targeted volume, while particles outside the radius are scaled down or removed based on set conditions.
- Blueprint User Parameters: Expose the sphere location as a user parameter so you can move the force field dynamically in Blueprint for interactive gameplay effects.
- Velocity-Based Color: Map particle velocity to a color scale so particles change color dynamically as they accelerate and move through the field.
- Customization & Use Cases: Adapt the setup for magic, sci-fi, or natural environmental effects by tuning curl noise, adding forces, or swapping textures and color scales.
Tutorial Access & Project Files
Watch the full walkthrough or access project files through the links below:
- YouTube Tutorial: Custom Attractor Force in UE4 Niagara Tutorial
- Patreon: https://www.patreon.com/Ashif
Frequently asked questions
How does the custom sphere mask control the attractor force in Niagara?
A custom script uses float and vector values to define the sphere’s radius and position. Particles within the affected area have their velocity disturbed by curl noise, while particles outside the radius are scaled down or removed based on the configured conditions.
Can the attractor sphere position be controlled dynamically in Blueprint?
Yes. The sphere’s location is set up as a user parameter, allowing Blueprints to update its position dynamically for real-time interaction with the particle grid.
How do the particles change color when disturbed by the force?
Particle velocity is connected to a color scale, so each particle shifts color dynamically depending on its speed and movement inside the effect.


Leave a Reply