Now if you pass a simple t as an arg it will do a fast autowalk at the start, mostly for testing.
This commit is contained in:
parent
14a96d0b63
commit
d03abba8e4
3 changed files with 11 additions and 2 deletions
|
@ -293,7 +293,7 @@ namespace gui {
|
|||
$main_ui.debug();
|
||||
break;
|
||||
case KEY::O:
|
||||
$autowalking = true;
|
||||
start_autowalk(0.06);
|
||||
default:
|
||||
break; // ignored
|
||||
}
|
||||
|
@ -510,4 +510,8 @@ namespace gui {
|
|||
}
|
||||
}
|
||||
|
||||
void FSM::start_autowalk(double rot_speed) {
|
||||
$autowalking = true;
|
||||
$main_ui.$camera.rot_speed = rot_speed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue