Skip to content

Fix side-wall particle climbing in SPH collision response#40

Merged
Testtesttestestes merged 1 commit into
mainfrom
codex/investigate-particles-climbing-walls-xowz9o
Mar 10, 2026
Merged

Fix side-wall particle climbing in SPH collision response#40
Testtesttestestes merged 1 commit into
mainfrom
codex/investigate-particles-climbing-walls-xowz9o

Conversation

@Testtesttestestes

Copy link
Copy Markdown
Owner

Motivation

  • Prevent particles from unnaturally climbing up the flask side-walls by reducing tangential cohesive drift applied at near-vertical wall contacts.

Description

  • Modify src/sph/update.frag to compute sideWallFactor = smoothstep(0.55, 0.9, abs(normalLocal.x)) and attenuate cohesiveSlip by multiplying it with (1.0 - sideWallFactor) so cohesive tangential drift is reduced on vertical walls.

Testing

  • npm run lint completed successfully.
  • npm run build completed successfully.
  • An automated Playwright screenshot attempt crashed (Chromium SIGSEGV) so no visual artifact was produced.

Codex Task

@Testtesttestestes Testtesttestestes merged commit c9f24a4 into main Mar 10, 2026
1 check passed
@Testtesttestestes Testtesttestestes deleted the codex/investigate-particles-climbing-walls-xowz9o branch March 10, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant