修复aabb碰撞bug
This commit is contained in:
parent
62cad93ca2
commit
c6c7cb379e
@ -82,7 +82,7 @@ namespace a8
|
||||
a8::Vec2 z = b_center - a_center;
|
||||
float u1 = a_v.x + b_v.x - std::abs(z.x);
|
||||
float u2 = a_v.y + b_v.y - std::abs(z.y);
|
||||
return u1 > 0 && u2 > 0;
|
||||
return u1 > 0.000001f && u2 > 0.000001;
|
||||
}
|
||||
|
||||
bool IntersectCircleCircle(a8::Vec2 a_pos, float a_rad, a8::Vec2 b_pos, float b_rad)
|
||||
|
Loading…
x
Reference in New Issue
Block a user