Identify broken wall collisions
This commit is contained in:
@@ -68,6 +68,12 @@ wallsOnLine p1 p2 ws = hitWalls
|
||||
hitPoint w = uncurry (intersectSegSeg p1 p2) (_wlLine w)
|
||||
hitWalls = filter (isJust . hitPoint) (IM.elems ws)
|
||||
|
||||
wallsOnLine3D :: Point3 -> Point3 -> IM.IntMap Wall -> [Wall]
|
||||
wallsOnLine3D = undefined
|
||||
-- where
|
||||
-- hitPoint w = uncurry (intersectSegSeg p1 p2) (_wlLine w)
|
||||
-- hitWalls = filter (isJust . hitPoint) (IM.elems ws)
|
||||
|
||||
wallsOnCirc :: Point2 -> Float -> IM.IntMap Wall -> IM.IntMap Wall
|
||||
wallsOnCirc p r = IM.filter f
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user