Tweak slime wall collisions, all creatures cliff collisions (min 10)
This commit is contained in:
+5
-3
@@ -283,7 +283,7 @@ functionalUpdate =
|
||||
. over uvWorld updateDistortions
|
||||
. over uvWorld updateCreatureSoundPositions
|
||||
. over uvWorld updateCreatureStrides
|
||||
. over uvWorld pushYouOutFromWalls
|
||||
. pushYouOutFromWalls
|
||||
. colCrsWalls
|
||||
. over uvWorld simpleCrSprings
|
||||
. over uvWorld updateDoors
|
||||
@@ -342,8 +342,10 @@ functionalUpdate =
|
||||
. updateAimPos
|
||||
. over uvWorld updatePastWorlds -- it might be possible to do this without storing stuff such as the temporary lights/flares etc
|
||||
|
||||
pushYouOutFromWalls :: World -> World
|
||||
pushYouOutFromWalls w = w & cWorld . lWorld . creatures . ix 0 %~ muzzleWallCheck w
|
||||
pushYouOutFromWalls :: Universe -> Universe
|
||||
pushYouOutFromWalls u
|
||||
| debugOn Noclip (u ^. uvConfig) = u
|
||||
| otherwise = u & uvWorld . cWorld . lWorld . creatures . ix 0 %~ muzzleWallCheck (u ^. uvWorld)
|
||||
|
||||
-- rotate creature as well? behaviour on ledges?
|
||||
muzzleWallCheck :: World -> Creature -> Creature
|
||||
|
||||
Reference in New Issue
Block a user