Tweak projectile wall collision position

This commit is contained in:
2025-12-05 10:33:20 +00:00
parent 0a34db312f
commit 4777b94dfc
+1 -1
View File
@@ -67,7 +67,7 @@ shellHitWall p n wl pj
(topj . pjVel %~ reflectInNormal n)
. (topj . pjPos .~ p + normalize n)
. bounceSound pj
| otherwise = topj %~ ((pjPos .~ p) . (pjTimer .~ 0))
| otherwise = topj %~ ((pjPos .~ p - normalize (pj ^. pjVel)) . (pjTimer .~ 0))
where
topj = cWorld . lWorld . projectiles . ix (_pjID pj)