Aabb Collision

[Solved] Aabb Collision | Csharp - Code Explorer | yomemimo.com
Question : aabb collision

Answered by : julesg10

if(player1.x < player2.x + player2.width && player1.x + player1.width > player2.x && player1.y < player2.y + player2.height && player1.y + player1.height > player2.y)
{
// detected
}

Source : | Last Update : Sat, 19 Jun 21

Answers related to aabb collision

Code Explorer Popular Question For Csharp