I am working on a game using MonoGame. I need to use convex polygon to convex polygon and convex polygon to circle collisions. I have done some studying on The Separating Axis Theorem. I have a couple of general questions, mainly revolving around implementing this algorithm in C#.
I was planning on storing a line segment of a polygon as a startingPoint and endingPoint using Vector2 data types. I was then going to implement the left normal as a Vector2.
1. Do I need to normalize the left normal before getting my projections?
2.Could I use a float for the left normal? Would this be easier or harder to implement?
3.Should I use a Vector2 for the polygon line segment?(instead of the of the two points as Vector2's)
thanks in advance!