Add more debug info for selected creatures
This commit is contained in:
@@ -104,7 +104,8 @@ crsHitRadial :: Point2 -> Float -> World -> [(Point2, Creature)]
|
||||
crsHitRadial p r = mapMaybe f . crsNearCirc p r
|
||||
where
|
||||
f cr
|
||||
| dist cpos p <= r = Just (cpos +.+ r *.* normalizeV (p -.- cpos), cr)
|
||||
| dist hitpos p <= r = Just (hitpos, cr)
|
||||
| otherwise = Nothing
|
||||
where
|
||||
hitpos = cpos +.+ r *.* normalizeV (p -.- cpos)
|
||||
cpos = _crPos cr
|
||||
|
||||
Reference in New Issue
Block a user