fix "corner case" in collision detection

This commit is contained in:
nek0 2019-01-06 03:50:03 +01:00
parent 247b44db85
commit 84ce0c07bb

View file

@ -845,6 +845,7 @@ checkBoundsCollision2
-> V2 Double
checkBoundsCollision2
pre@(V2 pr pc) nex dt acc (Boundaries (minr, minc) (maxr, maxc))
| colltr < dt && colltc < dt = V2 0 0
| colltr < dt || colltc < dt = V2 0 0
| otherwise = acc
where