Collision detection for concave polygons with SAT, round/off error optimization
Basically I want to create my own tools for developing a 2D top-down game and when it comes to collision detection I’m trying to implement the SAT method, but somehow my calculations seem to be way off from expected in certain situation (see picture below).
Collision Detector returns true
And at other times they are super accurate (2nd picture)
returns false, which is correct
Collision detection for concave polygons or alternative for detecting collision at corners
Basically I want to create my own tools for developing a 2D top-down game and when it comes to collision detection I’m trying to implement the SAT method, but somehow my calculations seem to be way off from expected in certain situation (see picture below).
Collision Detector returns true
And at other times they are super accurate (2nd picture)
returns false, which is correct