Remove ssaTri, bullet movement is broken
This commit is contained in:
@@ -247,7 +247,7 @@ closestPointOnSeg segP1 segP2 p
|
||||
orthogonalPointOnSeg :: Point2 -> Point2 -> Point2 -> Maybe Point2
|
||||
orthogonalPointOnSeg a b p
|
||||
| param < 0 || param > 1 = Nothing
|
||||
| otherwise = Just $ a +.+ param *.* (normalizeV $ b -.- a)
|
||||
| otherwise = Just $ a +.+ param *.* normalizeV (b -.- a)
|
||||
where
|
||||
param = closestPointOnLineParam a b p
|
||||
|
||||
|
||||
Reference in New Issue
Block a user