limitada la velocitat angular dels debris i transformada en velocitat lineal tangencial

This commit is contained in:
2025-12-09 13:38:18 +01:00
parent 767a1f6af8
commit 76165e4345
2 changed files with 42 additions and 4 deletions

View File

@@ -107,6 +107,11 @@ constexpr float SHRINK_RATE = 0.5f; // Reducció de mida (factor/s)
constexpr float FACTOR_HERENCIA_MIN = 0.7f; // Mínimo 70% del drotacio heredat
constexpr float FACTOR_HERENCIA_MAX = 1.0f; // Màxim 100% del drotacio heredat
constexpr float FRICCIO_ANGULAR = 0.5f; // Desacceleració angular (rad/s²)
// Angular velocity cap for trajectory inheritance
// Excess above this threshold is converted to tangential linear velocity
// Prevents "vortex trap" problem with high-rotation enemies
constexpr float VELOCITAT_ROT_MAX = 1.5f; // rad/s (~86°/s)
} // namespace Debris
} // namespace Physics