Skip to content

feat: add per-pixel velocity inertia - #12

Merged
chowjiaming merged 1 commit into
feat/oil-icefrom
feat/pixel-velocity
Aug 14, 2026
Merged

chowjiaming merged 1 commit into
feat/oil-icefrom
feat/pixel-velocity

Conversation

@chowjiaming

Copy link
Copy Markdown
Owner

Summary

  • SoA pvx/pvy (i8) swap with the cell. Empty and locked cells stay 0.
  • Falling powder/liquid accelerate pvy up to 3 and try 1+|pvy| downward moves per tick; water keeps horizontal pvx after a slide.
  • Gases take 1–2 air-axis moves before the usual rise. Fan+steam still blows right.

Test plan

  • just verify
  • Sand in a 16-tall column reaches the floor in fewer than 15 ticks
  • Water in a floor channel keeps sliding the same way for ≥3 ticks after a shove
  • Steam in front of a fan still moves right
  • pvy on Empty is 0 after a swap-out

Powder and liquids accelerate downward so they cover more than one cell per tick; water keeps its last slide direction and gases take a short air-axis burst before rising.
@cursor

cursor Bot commented Aug 14, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chowjiaming
chowjiaming merged commit 08a219a into feat/oil-ice Aug 14, 2026
2 checks passed
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