can anyone help with an air hockey game i am creating in c++, i need to figure out what do do after the code has detected a collision
but i can't seem to find any good sources on it at all
this is what i have so farCode:void checkPlayerCollision() { int temp; int temp2; int temp3; temp = player.GetRadius(); temp2 = AIpuck.GetRadius(); temp3 = temp + temp2; if( (player.GetXLocation - AIpuck.GetXLocation)%(player.GetYLocation - AIpuck.GetYLocation) <= temp3 { }



LinkBack URL
About LinkBacks


