Hey, so I did some funky stuff today with Flow Fields (also known as Vector Fields)! Flow fields represent movement/flow of fluids on a grid using vectors.
You can read more about them here!
Here are 500 moving fluid particle (guis) on the screen! These particles are set to avoid crashing into/pass the circle in the center. The color of these particles are determined by their varying velocities. All of these particles are merely gui frames.
These particles move on the screen with a certain velocity from left to right, if they touch/come to close to the circle in the middle, these particles avoid going into the circle, rather going completely around it. Interestingly enough, this can also be used in path finding!
Some particles may not come into contact with the circle at all, like the ones moving near the top and bottom edge. It is practically the same phenomenon as an object in the path of running stream or river. Let’s take a look at what I made now!
500 Fluid Particles (Slow)
500 Fluid Particles (Fast)
These were too fun to make, especially when you get to know the possibilities of the roblox’s engine are beyond our imagination! The number of particles can be lowered but if increased further, it can cause severe lag and crashes since rendering these are a challenge.
Feedback and questions are always welcome! Thanks.