Improve wrist forcefield positioning

Not perfect for left wrist when aiming two handed twist weapons
This commit is contained in:
2026-01-22 21:19:40 +00:00
parent f1c63abdc3
commit a464d4dc38
8 changed files with 178 additions and 174 deletions
+2 -1
View File
@@ -258,8 +258,8 @@ functionalUpdate =
. over (uvWorld . cWorld . lWorld) updateMagnets
. over uvWorld (cWorld . lWorld . lClock +~ 1)
. over uvWorld updateDistortions
. over uvWorld pushYouOutFromWalls
. over uvWorld updateCreatureSoundPositions
. over uvWorld pushYouOutFromWalls
. over uvWorld updateCreatureStrides
. colCrsWalls
. over uvWorld simpleCrSprings
@@ -327,6 +327,7 @@ muzzleWallCheck w cr = fromMaybe cr $ do
^? ix invid . _2
let ps = reduceLocDT f loc ^.. each . _1 . _xy
cp = cr ^. crPos . _xy
-- cop = cr ^. crOldPos . _xy
r <- boundPointsRect (cp : ps)
let wls = uncurry wlsNearRect r w & filter (not . _wlTouchThrough)
vs = mapMaybe (g cp wls) ps