0
\$\begingroup\$

Lets say i need to check if two AABBs are colliding with each other. I would simply compare their corners. When am i gonna need SAT(heavy vector calculations) to do the same thing?

\$\endgroup\$
2
\$\begingroup\$

SAT is for convex polygons, AABB is for axis aligned bounding boxes (obviously). If you only have the latter ones, then you don't need to use SAT, but if you need something that's more precise, then SAT is the way to go (polygons can enclose objects more precisely, though it requires you to make them manually or use some sort of algorithm to generate them)

Usually AABB is used for the broad phase, and SAT is for the narrow phase.

\$\endgroup\$
  • \$\begingroup\$ Got it! Thank you for taking out some time for the question. \$\endgroup\$ – Ankit singh kushwah Jan 3 '17 at 13:10
  • \$\begingroup\$ @Ankit if this answered your question, press the tick mark. \$\endgroup\$ – Bálint Jan 3 '17 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.