Skip to content

Commit 3f7373c

Browse files
committed
feat: 🚑 controle de colisão futura considerando a velocidade dos analisados
1 parent 14b1d98 commit 3f7373c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/objects/asteroid.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ bool verificaSeVaiColidirComAlgumAsteroid(int indice)
164164
{
165165
colisaoEntreAsteroids = true;
166166
}
167+
else if(asteroid[indice].velocidade > bloco.velocidade)
168+
{
169+
colisaoEntreAsteroids = true;
170+
}
167171
}
168172
}
169173

0 commit comments

Comments
 (0)