moving_sprite.cpp: afegit umbral a stopRotate()

This commit is contained in:
2025-09-30 14:11:58 +02:00
parent 49d561b583
commit cbe4315701
2 changed files with 7 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ class MovingSprite : public Sprite {
void setRotatingCenter(SDL_FPoint point) { rotate_.center = point; } // Establece el centro de rotación
void setRotate(bool enable); // Activa o desactiva el efecto de rotación
void startRotate(); // Habilita la rotación con centro automático
void stopRotate(); // Detiene la rotación y resetea ángulo
void stopRotate(float threshold = 0.0F); // Detiene la rotación y resetea ángulo
void setRotateAmount(double value) { rotate_.amount = value; } // Establece la velocidad de rotación
void scaleRotateAmount(float value) { rotate_.amount *= value; } // Modifica la velocidad de rotacion
void switchRotate() { rotate_.amount *= -1; } // Cambia el sentido de la rotación