Group3_FinalProject/Collision.cpp
// Support function for simplex that finds 
Support function for simplex that finds
Support function for simplex that finds
vec2 Collision::simplexSupport( Mesh* mesh1, Mesh* mesh2, const vec2 direction )
{
	vec2 p1 = mesh1->getFarthestPoint( direction );
	vec2 p2 = mesh2->getFarthestPoint( -direction );
	return p1 - p2;
}
vec2 Collision :: simplexSupport ( Mesh * mesh1 , Mesh * mesh2 , const vec2 direction ) { vec2 p1 = mesh1 -> getFarthestPoint ( direction ) ; vec2 p2 = mesh2 -> getFarthestPoint ( - direction ) ; return p1 - p2 ; }
Support function for simplex that finds
Support function for simplex that finds
//cout << p1.x << "   " << p1.y << endl; //cout << p2.x << "   " << p2.y << endl;