Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fluid passing through Containers
#4
(08-10-2019, 06:18 AM)Sany02 Wrote: Thank you for your reply. I tried what you suggested. The ObiKinemeticVelocities component was attatched to the glass but I was moving it through transform.Translate() now i'm moving it through rigidbody.velocity and it is working great. The only problem that I'm unable to solve right now is when the container is filled I want to make the water inside the container still and cancel all the forces inside the container. I tried killing them and that is not what I want. I also tried emitter.velocities[index] and angular velocities and set them to vector3.zero in collisions but couldn't succeed. In short I want to show the water but do not want it to simulate when the glass is filled. Thanks for helping out. 

Hi,

In a nutshell what you want is control over inertial forces. So you need to perform your simulation in the container's local space, instead of world space. See:
http://obi.virtualmethodstudio.com/tutor...space.html
Reply


Messages In This Thread
Fluid passing through Containers - by Sany02 - 07-10-2019, 12:33 PM
RE: Fluid passing through Containers - by Sany02 - 08-10-2019, 06:18 AM
RE: Fluid passing through Containers - by josemendez - 08-10-2019, 08:06 AM