refactor(effects): renombra temps_vida/temps_max a elapsed_time/max_lifetime
This commit is contained in:
1 parent
807f71ffa7
commit
4cfad053f0
6 files changed
+92
-92
No files matched your search
@@ -16,7 +16,7 @@ namespace Effects {
|
||||
// tail = head − velocity_normalitzada × current_length.
|
||||
//
|
||||
// Cicle de vida:
|
||||
// Fase 1 (temps_vida < grow_duration): current_length creix linealment
|
||||
// Fase 1 (elapsed_time < grow_duration): current_length creix linealment
|
||||
// de 0 a max_length. Brillor al màxim.
|
||||
// Fase 2: current_length = max_length × (speed/initial_speed) i brillor
|
||||
// amb la mateixa proporció. Mor quan length o brightness cauen sota
|
||||
@@ -30,7 +30,7 @@ namespace Effects {
|
||||
float max_length; // Longitud màxima (final de la fase de creixement)
|
||||
float grow_duration; // Temps de creixement de 0 a max_length (s)
|
||||
|
||||
float temps_vida; // Acumulador (s)
|
||||
float elapsed_time; // Acumulador (s)
|
||||
float initial_speed; // Speed inicial per a la proporció de fase 2
|
||||
|
||||
float brightness; // 0..1
|
||||
|
||||
Reference in new issue
Block a user