leonardo-montes / Unity-ECS-Job-System-SPH

Implementation of the SPH Algorithm (fluid simulation) in Unity, comparing singlethread and ECS/Job System performances.
MIT License
248 stars 43 forks source link

When reducing its radius, the particules might ignore the colliders #1

Open sylafrs opened 4 years ago

sylafrs commented 4 years ago

Hey,

I'm trying to implement this to have some kind of snow sphere, so I just tried to reduce the gravity and the sizes of the particles; but the particles seems to ignore the wall colliders when its radius is less than 1.

How can we reduce a particle size ?

Best regards, Sylafrs

(I think I will use a different 'Translation' component to scale the simulation positions)

Zevora commented 4 years ago

@sylafrs Did you ever manage to find a way to reduce the size of the particles? I'm running into the same problem.

sylafrs commented 4 years ago

No, I gave up the idea to use physics for my experience.

Since I wanted a lot of little particles in a sphere [1], having simple hand-made collisions and gravity made the trick, the particles doesn't have to collide on each other, it still does the trick visually.


[1] Actually they are between two spheres, the second one being around my camera

Zevora commented 4 years ago

Thank you for your reply.