birth position object volume minus moving shape
#11
(05-05-2020, 04:44 AM)jasond240 Wrote:  I'm showing a cutaway view so you can see inside the plug.

I don't see any image. 

However, here's some thoughts that might help. 
You must use the mesh in the physX collision, if you are  using concave surfaces (convex are really simple, always closed surfaces), otherwise, if it's on convex, it will make your geometry collision very simple and closed (you can view how collision shape looks with "display hull" option). 
Simpy - if The plug is cylinder for example, it can be convex, if it's tube (and you want particles to go inside the tube), it should be mesh. 

You need 3 meshes for this, and they all need to be built carefully. 
1) Tanker (make sure it has that hole (with standard boolean), and shell. 
2) Plug (just do it however you like it) 
(above 2 goes in Physx collision with mesh selected for both) 

3) Birth object for balls in tanker. 
Now, this one you need to do carefully. Make it's radius a little bit less then actual tanker (and height whatever you want). Also, with some boolean operation, make sure you build it, so it doesn't birth where your plug is. You need to build it. And also, it needs to be closed surface. 
Look at my sample again, and how the birth mesh looks like.

There is also a way, where you just birth voxels on simple cylinder, then test which one is touching the plug, then send them to delete, but at this point, I think it's easier for you to just build correct birth object. 
-----------------------------------

You mention that particles collides with each other. That shouldn't happen n if you used birth voxels, shape spheres, and didn't touch their scale. I assume it's because they are colliding with plug or the tanker (or both). That's why I said you need to build carefully birth object. 
But if you ever encounter a particle by particle collision between themself, just turn on scale (make variation to zero), and just make them slightly smaller, so they don't touch when they are born.
  Reply


Messages In This Thread
RE: birth position object volume minus moving shape - by d4rk3lf - 05-05-2020, 10:55 AM

Forum Jump: