Collision Query | UE5 Niagara #ScratchPad Module #9

Collision Query | UE5 Niagara #ScratchPad Module #9
Particles spawning where meshes intersect with collision query in Unreal Engine 5 Niagara

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 / SectionRole in EffectKey Controls & Use Cases
Test Map & Custom MaterialProvides intersecting sphere and cube meshes with mesh-interaction shadingSimple test scene and custom material setup
Mesh RendererRenders the sphere mesh inside the Niagara systemApplies the custom material to the sphere
Scratch Pad Collision QueryDetects intersections so particles only spawn where meshes overlapSpawns particles along intersection zones
Attribute & Math ControlsModifies particle appearance based on collision detectionMath nodes, lerp, and clamp for size, color, opacity, and fade
GPU Particle SimulationRuns intersection particle spawning efficientlySurface sparks, mesh outlines, and impact zones

Tutorial Access & Project Files

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.


Discover more from CGHOW

Subscribe to get the latest posts sent to your email.

2 responses to “Collision Query | UE5 Niagara #ScratchPad Module #9”

  1. This doesn’t work with the latest version of unreal

  2. […] ScratchPad modules: Collision Query · Particle Attribute Reader · Custom […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.