Tweak item dropping, add item radius
This commit is contained in:
@@ -27,8 +27,7 @@ colCrWall w c
|
||||
| otherwise = c & crPos .~ _crOldPos c
|
||||
where
|
||||
c'' = c & crPos %~ pushOutFromWalls rad ls
|
||||
c' = c & crPos %~
|
||||
pushOutFromWalls rad (reverse ls)
|
||||
c' = c & crPos %~ pushOutFromWalls rad (reverse ls)
|
||||
. pushOutFromWalls rad ls
|
||||
. flip (collidePointWalls p1) wls -- check push throughs
|
||||
rad = _crRad c + wallBuffer
|
||||
|
||||
Reference in New Issue
Block a user