private bool perPixelCollision()
{
getBits();
if (bitsA.Length != bitsB.Length) {
Debug.LogError("Bits do not overlap");
return false;
}
for (int i = 0; i < bitsA.Length; i++) {
// If both colors are not transparent (the alpha channel is not 0), then there is a collision
if (bitsA[i].a != 0 && bitsB[i].a != 0) {
return true;
}
}
return false;
}