The concept here is good, but the code is terrible. Each of those algorithms runs in O(n*m) where you could actually solve for the separating axis in O( log(n) + log(m) ), which is exponentially faster.
Fantastic explanation, although I've found the interactive diagrams in the Metanet tutorial to be helpful for beginners to easily visualise how the algorithm works.
1
u/DaFox Nov 13 '14
Old but high quality content, thanks!
1
u/sireel Nov 13 '14
That's the best explanation of SAT I've ever read :D
1
u/33a Nov 15 '14
The concept here is good, but the code is terrible. Each of those algorithms runs in O(n*m) where you could actually solve for the separating axis in O( log(n) + log(m) ), which is exponentially faster.
1
u/jasonbadams Apr 05 '15
Fantastic explanation, although I've found the interactive diagrams in the Metanet tutorial to be helpful for beginners to easily visualise how the algorithm works.