Skip to content

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

Closed
Testtesttestestes wants to merge 1 commit into
mainfrom
codex/investigate-particles-climbing-walls-jjgi0a
Closed

Fix side-wall particle climbing in SPH collision response#41
Testtesttestestes wants to merge 1 commit into
mainfrom
codex/investigate-particles-climbing-walls-jjgi0a

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 deleted the codex/investigate-particles-climbing-walls-jjgi0a branch March 10, 2026 10:54
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