Obi Official Forum
Obi Fluid + Trail Renderer - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Obi Fluid + Trail Renderer (/thread-2965.html)



Obi Fluid + Trail Renderer - ary1111 - 01-06-2021

I was wondering if there was a way to show a trail renderer attached to the particles, either using Unity's built-in system or using something like Ara Trails?


RE: Obi Fluid + Trail Renderer - Nyphur - 01-06-2021

If your trail renderer tool allows you to manually set the positions of the trails, you could write a script to read the positions of the particles directly from the emitter. With an ObiEmitter named "emitter", an array of the positions can be accessed as emitter.solver.positions.