Niagara - Line Attraction Force module is broken when using falloffs

The line attraction force module doesn’t work correctly when using ‘Use Attraction Falloff’.

If you turn on attraction falloff, attraction strength is not use at all because its only passed through the false flag of the static switch node (see attractor-strength.jpg). So that means no control of attraction strength when using a falloff.

Also, I think that invert falloff needs to be on in the distance based falloff node so that particles get attracted close by.

I’ve added an image (fix-for-module.jpg) that fixes the issues I’ve run into.

It could also be worth exposing the InvertFalloff flag on the distance based falloff node, so the falloff can be flipped, if needed.

Hi James,

Thank you for the report. I did some tests and confirmed the behavior you described. Also, I understand that your solution is correct, and that it would indeed be beneficial to have the option “Invert Falloff” exposed as a module input.

I am now filing an internal bug report about these issues, and I will get back to you with a public bug tracker link as soon as I have one.

Best regards,

Vitor

Thanks!

I’ve made my own version of this locally so not dependant on the changes but thought it was worth reporting for other users.

Incidentally, the line force actually applies a capsule force and I think is more useful as a repeller, which would be a better name for it, I think and would be more used be artists.

Hi James,

I created an internal bug report for this issue. Here’s the bug tracker link: UE-282374. It should become accessible once the devs mark it as public.

By the way, thank you for providing your solution, this can be very useful for others coming here searching for information about this topic.

Best regards,

Vitor