debris hereten velocitat angular

This commit is contained in:
2025-12-09 12:30:03 +01:00
parent 523342fed9
commit 3c3857c1b2
6 changed files with 93 additions and 18 deletions

View File

@@ -50,6 +50,7 @@ class Enemic {
const std::shared_ptr<Graphics::Shape>& get_forma() const { return forma_; }
void destruir() { esta_ = false; }
float get_brightness() const { return brightness_; }
float get_drotacio() const { return drotacio_; }
Punt get_velocitat_vector() const {
return {
velocitat_ * std::cos(angle_ - Constants::PI / 2.0f),