Can someone PLEASE help me with the onwall checks for a car? :C
I SUCK at onwall checks, I'm just doing
PHP Code:
function willCrash()
{
temp.movex = getMoveX();
temp.movey = getMoveY();
if ( onwall2( temp.movex, temp.movey, 2, 2 ) )
{
return true;
}
}
can someone please help me with this?
I'm showing an image for the car, which simply rotates.