09-10-2024, 08:12 AM
(09-10-2024, 02:11 AM)vivi_j Wrote: I'm working on simulating a Chemistry Lab in Unity. Here's what it looks like right now: https://file.io/6cEnvfVUCXTK. But I'd like to make my object hold Obi Fluid. Here's the mesh: https://imgur.com/a/dz5o3ue. I suspect that it's an issue with the mesh, but can someone please help? Thanks
Hi!
How have you set the collider up and what collision parameters are you using in your solver? Could you share your collider and solver settings?
(09-10-2024, 02:11 AM)vivi_j Wrote: I've tried it with a different object that had more vertices as well, so I'm not sure what's wrong.
Objects collide against triangles, not vertices. And the more triangles your object has, the costlier collision detection will become at no extra advantage. You should strive to use as few triangles/vertices as possible.
Also note that how you're moving the container has a large impact on behavior. Make sure you're moving it using physics (joints, AddForce, modifying their velocity, etc), instead of just setting its transform position - as that essentially teleports objects around ignoring physics, and as a result fluid will be left out of the container as you move it around.
kind regards,