3 ms·
Even logic with line intersection has to be careful! I wrote some code to use line intersection tests for 2D platforming. Turns out "find a line this line colli
by whateveracct 3y ago
Even logic with line intersection has to be careful! I wrote some code to use line intersection tests for 2D platforming. Turns out "find a line this line collides with, move to that point, and repeat" is easy to mess up due to FP precision.
I second Real Time Collision Detection. I used its section on line segment intersection to get my code working.