Ajout de la possibilitée de changer la vitesse de dance.
This commit is contained in:
parent
237c9be64c
commit
f8b7938e7c
6
IO.hpp
6
IO.hpp
|
@ -178,8 +178,9 @@ class IO {
|
|||
}
|
||||
}
|
||||
|
||||
void startDancingAction()
|
||||
void startDancingAction(int dancing_action_delta_angle = DANCING_ACTION_DELTA_ANGLE)
|
||||
{
|
||||
m_dancing_action_delta_angle = dancing_action_delta_angle;
|
||||
m_is_dancing = true;
|
||||
}
|
||||
|
||||
|
@ -237,7 +238,7 @@ class IO {
|
|||
{
|
||||
delta_time = 0;
|
||||
|
||||
actual_angle += actual_dir * DANCING_ACTION_DELTA_ANGLE;
|
||||
actual_angle += actual_dir * m_dancing_action_delta_angle;
|
||||
}
|
||||
|
||||
if(actual_angle <= 43)
|
||||
|
@ -299,4 +300,5 @@ class IO {
|
|||
float m_init_x, m_init_y, m_init_z;
|
||||
float m_dir {0};
|
||||
float m_speed {0};
|
||||
int m_dancing_action_delta_angle {DANCING_ACTION_DELTA_ANGLE};
|
||||
};
|
Loading…
Reference in New Issue