mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 14:14:36 +00:00
fixed wrong degenerate direction checked in intersect.line_line_collide
This commit is contained in:
parent
813ee20052
commit
05f86e2cc1
@ -153,7 +153,7 @@ function intersect.line_line_collide(a_start, a_end, a_rad, b_start, b_end, b_ra
|
||||
|
||||
--detect degenerate cases
|
||||
local a_degen = a_dir:length_squared() <= COLLIDE_EPS
|
||||
local b_degen = a_dir:length_squared() <= COLLIDE_EPS
|
||||
local b_degen = b_dir:length_squared() <= COLLIDE_EPS
|
||||
if a_degen or b_degen then
|
||||
vec2.release(a_dir, b_dir)
|
||||
if a_degen and b_degen then
|
||||
|
Loading…
Reference in New Issue
Block a user