I was looking on OBB vs OBB test and found that it's calling GetInterval() with obb1 twice.
|
bool OverlapOnAxis(const OBB& obb1, const OBB& obb2, const vec3& axis) { |
|
Interval a = GetInterval(obb1, axis); |
|
Interval b = GetInterval(obb1, axis); |
|
return ((b.min <= a.max) && (a.min <= b.max)); |
|
} |
Is this intentional? or is second call supposed to be with obb2?
I was looking on OBB vs OBB test and found that it's calling GetInterval() with obb1 twice.
GamePhysicsCookbook/Code/Geometry3D.cpp
Lines 384 to 388 in 15810bb
Is this intentional? or is second call supposed to be with obb2?