So far I have this.
Trying to use Intersector.overlapConvexPolygons to get the Minimum Translation Vector, but it has no vector methods/properties. I need to do some addition & dot product on it.
Or someway I can convert it to a Vector2 object.
So far I have this.
Trying to use Intersector.overlapConvexPolygons to get the Minimum Translation Vector, but it has no vector methods/properties. I need to do some addition & dot product on it.
Or someway I can convert it to a Vector2 object.
You can try what I did here:
www.back2basic.phatcode.net/?Issue_%231:2D_Convex_Polygon_Collision_using_SAT