mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Fix for RectF::intersectTriangle()
Reported in this issue: https://github.com/GarageGames/Torque3D/issues/512
This commit is contained in:
parent
7e4cbc56f5
commit
fc51f9767a
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ inline bool RectF::intersectTriangle(const Point2F &a, const Point2F &b, const P
|
|||
// 3 point plus 12 edge tests.
|
||||
|
||||
// Check each triangle point to see if it's in us.
|
||||
if(contains(a) || contains(b) || contains(b))
|
||||
if(contains(a) || contains(b) || contains(c))
|
||||
return true;
|
||||
|
||||
// Check a-b against the rect.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue