UE4 - Spawning Decals at Particle Collision Locations?

unreal

#1

Is it possible in Unreal to have a particle collision spawn a decal on the surface it collides on? For example, if I wanted to have blood droplet particles accurately spawn blood splatters where they land. I haven’t done a whole lot of research into it yet, but I figured I’d ask here first.


#2

Yes, You can set up events in your particle system and trigger a blueprint which will spawn your decals.
Alternatively you can do it all in blueprint which may generate more accurate results, since particle collisions can be quite inconsistent from my experience.

in the end it really depends on the situation and the complexity your after.
For example;
Blood splatters on ground: Easy
Blood Splatters on moving target: Medium
Blood splatters dripping on animated target: Very Hard.


#3

I’d just want it landing on static surfaces, any idea what a blueprint solution would look like?


#4

Blueprint 1 spawns blood projectiles - check out the first person weapon for an example of projectiles.
Projectile Blueprint flies through the world until a Collision happens and then dies.
On Collision you spawn your decal - here you might have to do some logic to determine if the hit was a wall or a floor.

Give it a go and post up if you have problems :slight_smile:


#5

Simple setup like this, you don’t necessarly need to trace your impact location depending on how you set up your blueprint, but i find this handy to use if you want to add particles and other fancy stuff.

Linetrace has all the info you need.

Note: you’d still need a start and end trace for this to work :smiley:


#6

there is also the PEX (particle extention kit) on the marketplace, it allows for much more options in cascade… like spawning decals.


#7

You can add a collision module and then use an OnParticleCollide in BP’s to trigger all kinds of things :slightly_smiling_face:

https://answers.unrealengine.com/questions/728240/is-there-a-way-to-trigger-an-event-when-a-particle.html