Start simplifying buttons

This commit is contained in:
2025-06-25 15:16:11 +01:00
parent ab1b939e3d
commit bf0bc22720
8 changed files with 16 additions and 11 deletions
+1 -2
View File
@@ -774,8 +774,7 @@ updateDust w c
& dsVel .~ newvel
& dsTimer -~ 1
where
springvel = foldl' (dustSpringVel c) (_dsVel c) (dssNearPoint oldPos2 w)
v@(V3 _ _ vz) = springvel
v@(V3 _ _ vz) = foldl' (dustSpringVel c) (_dsVel c) (dssNearPoint oldPos2 w)
newvel = 0.95 * (maybe v (addZ vz . snd) hitWl - V3 0 0 0.05)
oldPos = _dsPos c
oldPos2 = stripZ oldPos