fix straight endpoint collisions
This commit is contained in:
parent
6827283886
commit
064aed31a6
3 changed files with 46 additions and 30 deletions
|
|
@ -326,7 +326,7 @@ class CollisionEngine:
|
|||
t_min = max(tx_min, ty_min)
|
||||
t_max = min(tx_max, ty_max)
|
||||
|
||||
if t_max < 0 or t_min > t_max or t_min > 1.0:
|
||||
if t_max <= 1e-9 or t_min > t_max or t_min >= 1.0 - 1e-9:
|
||||
continue
|
||||
|
||||
# If rectangle, slab is exact
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue