nilrider:: vr improvements

This commit is contained in:
Zeno Rogue 2022-05-06 20:28:08 +02:00
parent 279fe685ec
commit 381523515e
2 changed files with 5 additions and 3 deletions

View File

@ -163,7 +163,7 @@ void toggle_replay() {
}
void run() {
cmode = sm::PANNING;
cmode = sm::PANNING | sm::NORMAL;
clearMessages();
dialog::init();
if(view_replay && !paused) {
@ -344,7 +344,9 @@ void settings() {
dialog::add_action_push(nil_projection);
dialog::addItem("configure keys", 'k');
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
vrhr::vr_enable_button();
vrhr::enable_button();
vrhr::reference_button();
dialog::addItem("RogueViz settings", 'r');
dialog::add_key_action('r', [] {
pushScreen(showSettings);

View File

@ -172,7 +172,7 @@ void timestamp::centerview(level *lev) {
transmatrix Tb = cspin(0, 2, -slope);
hyperpoint base = Ta * Tb * point31(0, 0, whrad);
hyperpoint refpoint = rgpushxto0(where) * rgpushxto0(base) * point31(0, 0, whrad+whrad);
hyperpoint refpoint = rgpushxto0(where) * rgpushxto0(base) * point31(0, 0, whrad*3);
centerover = cwt.at; playermoved = false;
View = cspin(0, 2, heading_angle-90*degree) * cspin(1, 2, -90*degree) * gpushxto0(refpoint);
return;