limitada la velocitat angular dels debris i transformada en velocitat lineal tangencial
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user