12-12-2019, 11:34 AM
(12-12-2019, 11:32 AM)sc00b Wrote: Good day, we have a problem when we pour liquid into a glass, if you move it, fluids pass through this glass. How to fix it?
This is good ol' tunneling. If you move an object by changing its transform, you're essentially teleporting it from frame to frame, which causes particles that were inside the container to be outside the next frame.
Try adding a ObiKinematicVelocities component to the glass (and a kinematic rigidbody). This will calculate actual linear/angular velocities from the transform position deltas, allowing continuous collision detection to kick in and reduce tunneling. See the FaucetAndBucket sample scene for an example.