Skip to content

Normalize gravity scale so 1.0 maps to previous 2.0#51

Merged
Testtesttestestes merged 1 commit into
mainfrom
codex/scale-gravity-parameter-to-2.0
Mar 10, 2026
Merged

Normalize gravity scale so 1.0 maps to previous 2.0#51
Testtesttestestes merged 1 commit into
mainfrom
codex/scale-gravity-parameter-to-2.0

Conversation

@Testtesttestestes

Copy link
Copy Markdown
Owner

Motivation

  • The simulation felt like “normal” gravity at gravityScale = 2.0 while 1.0 was too weak, so user-facing 1.0 should match the previous effective gravity.

Description

  • Set the internal _gravityScale initial value to 2.0, add _gravityScaleNormalization = 2.0, and update export const setGravityScale to multiply the input by the normalization constant in src/sph/sph.js so the UI gravityScale is normalized.

Testing

  • Ran npm run lint which completed successfully.
  • Built the production bundle with npm run build which succeeded.
  • Started the dev server and captured a headless UI screenshot via Playwright to validate the control and rendering (succeeded).

Codex Task

@Testtesttestestes Testtesttestestes merged commit fa2f108 into main Mar 10, 2026
1 check passed
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