Skip to content

Fix frozen particles affected by gravity when using Projective Fluids#373

Open
lukashof wants to merge 1 commit intoInteractiveComputerGraphics:masterfrom
lukashof:fix_gravity_on_frozen_particles_PF
Open

Fix frozen particles affected by gravity when using Projective Fluids#373
lukashof wants to merge 1 commit intoInteractiveComputerGraphics:masterfrom
lukashof:fix_gravity_on_frozen_particles_PF

Conversation

@lukashof
Copy link

I observed frozen particles drifting along the gravity vector instead of being fixed in space. The additional check in TimeStep::clearAccelerations ensures, gravity is only applied to active particles and fixes the issue.

I have only observed the bug using the Projective Fluids scheme, which I find surprising, as the other schemes seem to rely on the function as well. However, that might just be my lack of understanding.

The function name also seems to imply to me that perhaps the accelerations should be set to zero, if the condition is false. But this seemed to make no difference to the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant