Obi Official Forum
Help Moving Fluids - 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: Help Moving Fluids (/thread-2865.html)



Moving Fluids - Lord_Dargon - 17-04-2021

How might I go about attracting a fluid to a specific point (a controller) and then if that point moves it tracks with the location. 

for context, I'm trying to get a "water bending" effect when an orb is moving telekinetically.

(edit) I realised that does not sound concise at all.


RE: Moving Fluids - josemendez - 18-04-2021

(17-04-2021, 05:11 AM)Lord_Dargon Wrote: How might I go about attracting a fluid to a specific point (a controller) and then if that point moves it tracks with the location. 

for context, I'm trying to get a "water bending" effect when an orb is moving telekinetically.

(edit) I realised that does not sound concise at all.

Hi,

You can use the particles API to get/set particle velocities and positions, and maybe collision callbacks to determine if they're within a trigger. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html
http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html