removed old range comparison
This commit is contained in:
parent
b65cba928b
commit
af0a2bfa33
|
@ -39,9 +39,6 @@ Vector _internal_collision_overlap_on_axis(PhysicsEntity self, PhysicsEntity oth
|
|||
Range a_range = _internal_collision_get_range_on_axis(self, axis);
|
||||
Range b_range = _internal_collision_get_range_on_axis(other, axis);
|
||||
|
||||
if(a_range.min <= b_range.max && a_range.min <= b_range.max) {
|
||||
const float overlap_left = a_range.max - b_range.min;
|
||||
const float overlap_right = b_range.min - a_range.max;
|
||||
const float overlap_left = a_range.max - b_range.min;
|
||||
const float overlap_right = b_range.min - a_range.max;
|
||||
*out_point = fabsf(overlap_right) <= fabsf(overlap_left) ? a_range.maxpoint : a_range.minpoint;
|
||||
|
|
Loading…
Reference in a new issue