sparkl icon indicating copy to clipboard operation
sparkl copied to clipboard

feat: apply ground friction on predictive velocity correction too

Open sebcrozet opened this issue 2 years ago • 2 comments

Before this change, ground friction was only applied on grid cells below the ground. Now, just like grid cells below the ground induce a friction impulse proportional to the normal velocity, the grid cells above the ground now apply friction proportional to the removed normal velocity due to the predictive contact.

sebcrozet avatar Nov 14 '23 18:11 sebcrozet

Noticeable improvement in the 2D examples. The material doesn't seem to slide as on ice, see the screenshots below.

Before: Pasted image 20231114194321

After: Pasted image 20231114194455

Vollkornaffe avatar Nov 14 '23 18:11 Vollkornaffe

Hmm, it does look like the fluid example is worse off as the number of escaping particles is increased. I'm not sure why that is. image

Vollkornaffe avatar Nov 15 '23 10:11 Vollkornaffe