
What is the Collision Query ScratchPad module in UE5 Niagara?
This tutorial shows how to use a collision query inside a ScratchPad module to spawn particles only where meshes intersect in Unreal Engine 5 Niagara, using a simple sphere and cube intersection setup with downloadable project files.
You can apply this approach to surface sparks, mesh outlines, and impact zones where geometry overlaps in real time.
More ScratchPad modules: Particle Attribute Reader · Custom Facing · Velocity Condition
How is the Collision Query effect structured?
The setup pairs basic scene geometry and a custom mesh material with a Niagara Scratch Pad collision query and GPU particle controls:
- Simple map and custom material: Create a test map with intersecting meshes (sphere and cube) and a custom material built for mesh interaction.
- Mesh renderer setup: Use a mesh renderer to display the sphere and apply the custom material.
- Scratch Pad collision query: Implement collision queries in the Niagara Scratch Pad so particles spawn only at the intersection of objects.
- Collision-driven particle properties: Adjust particle color, size, opacity, and fade based on collision detection.
- Math, lerp, and clamp controls: Use math nodes, lerp, and clamp values to regulate opacity and particle behavior.
- GPU particles: Implement GPU simulation for performance and realism.
Collision Query Breakdown
| Layer / Section | Role in Effect | Key Controls & Use Cases |
|---|---|---|
| Test Map & Custom Material | Provides intersecting sphere and cube meshes with mesh-interaction shading | Simple test scene and custom material setup |
| Mesh Renderer | Renders the sphere mesh inside the Niagara system | Applies the custom material to the sphere |
| Scratch Pad Collision Query | Detects intersections so particles only spawn where meshes overlap | Spawns particles along intersection zones |
| Attribute & Math Controls | Modifies particle appearance based on collision detection | Math nodes, lerp, and clamp for size, color, opacity, and fade |
| GPU Particle Simulation | Runs intersection particle spawning efficiently | Surface sparks, mesh outlines, and impact zones |
Tutorial Access & Project Files
- Project Files (Patreon): https://www.patreon.com/posts/67707435
- Video Tutorial (YouTube): https://youtu.be/kxFgm8B7Tm4
- Twitter / X: https://twitter.com/cghow_
Frequently asked questions
What does the Collision Query ScratchPad module do in UE5 Niagara?
It uses a collision query inside a Niagara Scratch Pad module so particles spawn only where meshes—such as a sphere and cube—intersect.
How are particle opacity, color, and fade controlled in this tutorial?
Particle color, size, opacity, and fade are modified based on collision detection using math nodes, lerp, and clamp values, paired with a custom material on the mesh renderer.
What VFX use cases is this collision intersection setup useful for?
It works well for surface sparks, mesh outlines, and impact zones, using GPU particles for performance and realism.


Leave a Reply