Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to control the particle tension?
#1
Hi,
I am trying to implement a mechanic where using a sweeper/cube in Unity, I clear out the liquid and collect it in one corner.
So If the liquid is splattered across the floor, i clean and collect the liquid in a corner using a cube. 
However while doing so, a lot of small particles just pass through the cube move really fast, How can i make the liquid thick and not separate from each other so easily?

Thanks
Reply
#2
(13-07-2020, 09:55 AM)anulagarwal Wrote: Hi,
I am trying to implement a mechanic where using a sweeper/cube in Unity, I clear out the liquid and collect it in one corner.
So If the liquid is splattered across the floor, i clean and collect the liquid in a corner using a cube. 
However while doing so, a lot of small particles just pass through the cube move really fast, How can i make the liquid thick and not separate from each other so easily?

Thanks

You can just increase the fluid's surface tension. That will make particles stick to each other more. See:
http://obi.virtualmethodstudio.com/tutor...rials.html

Whether or not this will solve your particular issue is hard to tell, though.
Reply
#3
I am attaching a file, When i move the cube over the liquid it, a little bit of it goes over it! 
Small particles go behind the cube really fast, How to stop it from happening? If i move the cube slow, it does not happen.
How can i fix that?
Reply
#4
(13-07-2020, 05:44 PM)anulagarwal Wrote: I am attaching a file, When i move the cube over the liquid it, a little bit of it goes over it! 
Small particles go behind the cube really fast, How to stop it from happening? If i move the cube slow, it does not happen.
How can i fix that?

There's nothing attached to your post.
Reply
#5
https://drive.google.com/file/d/1BRLTj6_...sp=sharing

Please check this small video out
Reply
#6
(15-07-2020, 07:13 PM)anulagarwal Wrote: https://drive.google.com/file/d/1BRLTj6_...sp=sharing

Please check this small video out

Hi,

This is called tunneling. It is a very common issue in all game engines, since time is represented as a discrete quantity in computers. If you're moving the wall by directly setting its transform position every frame, you're basically teleporting it from frame to frame. The physics engine will report the wall having zero velocity. In some frames, the wall will be teleported to a place where particles are completely inside of it, so they get projected outside of the wall quickly and gain momentum.

We have a video on this issue as it is a common source of confusion for beginners. We explain what it is and how to alleviate it in certain cases such as yours:
https://www.youtube.com/watch?v=ms0Z35GY6pk

There's also lots of material out there on what is tunneling, why it happens, and how to prevent/work around it.
Reply