Hi,
I would like to spawn a flock of birds with Niagara, and then to shoot and kill them too.At the moment the bird is killed, change it to a ragdoll.Is this possible with Niagara?
Thanks
Hi,
I would like to spawn a flock of birds with Niagara, and then to shoot and kill them too.At the moment the bird is killed, change it to a ragdoll.Is this possible with Niagara?
Thanks
You can either use the component renderer to spawn a component in the particle’s place if you want to simulate the ragdoll inside Niagara. Or you can export the data to blueprint (check the content examples to see how) and then spawn a skeletal mesh from there.
Thanks Michael,
I would like to know if is possible to somehow register a LineTrace to a particle,and then destroy this particle.I mean,shoot a bullet to a particle(bird) and destroy it.
Thanks
The rendered particles (meshes and sprites) are not visible to line traces, because they have no physics body.
I would send the line vector as user parameter into the system and then have each particle do a distance check to see if they are close enough to the line and then kill them based on that. But only if it’s meant to be purely cosmetic - if it’s a gameplay mechanic, where you get point for shooting the birds and it maybe has to be replicated to other clients, it’s better to implement it all in C++ or Blueprint (or the new Mass framework if you’re using 5.0).
Thanks Michael,
Do you know how will look the function for calculating the distance from a particle to a vector ?
I don’t know if there is a ready-made function for it in Niagara, but it’s not hard to derive it yourself with some linear algebra. Here is an example for the formula you want: mathematics - How can I project a 3D point onto a 3D line? - Game Development Stack Exchange
Thanks a lot Michael.I will take a closer look.