Add dimensions to all items
This commit is contained in:
@@ -107,7 +107,7 @@ pushOutFromWall rad cp2 (wp1,wp2)
|
||||
-- isOnWall = circOnSeg wp1 wp2 cp2 rad
|
||||
|
||||
pushOutFromCorners :: Float -> [(Point2,Point2)] -> Point2 -> Point2
|
||||
pushOutFromCorners r ls p = foldr (intersectCirclePoint r) p (map fst ls)
|
||||
pushOutFromCorners r ls p = foldr (intersectCirclePoint r . fst) p ls
|
||||
|
||||
--pushOutFromCorners' :: World -> Creature -> Creature
|
||||
--pushOutFromCorners' w cr = cr & crPos .~ newPos
|
||||
|
||||
Reference in New Issue
Block a user