Improve wrist forcefield positioning
Not perfect for left wrist when aiming two handed twist weapons
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user