Work on debugging
This commit is contained in:
@@ -102,8 +102,9 @@ intersectLinefromScreen cfig w a b =
|
||||
|
||||
drawCollisionTest :: World -> Picture
|
||||
drawCollisionTest w = fromMaybe mempty $ do
|
||||
a <- w ^. input . clickPos . at ButtonLeft
|
||||
b <- w ^. input . clickPos . at ButtonRight
|
||||
-- let f = fmap (screenToWorldPos (w ^. wCam))
|
||||
a <- w ^. input . clickWorldPos . at ButtonLeft
|
||||
b <- w ^. input . clickWorldPos . at ButtonRight
|
||||
return $
|
||||
setLayer DebugLayer (color orange $ line [a, b])
|
||||
<> foldMap (drawCross . fst) (crHit a b w)
|
||||
|
||||
Reference in New Issue
Block a user