The following warnings occurred:
Warning [2] Undefined array key "style" - Line: 201 - File: inc/plugins/gomobile.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/gomobile.php 201 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "gomobile" - Line: 214 - File: inc/plugins/gomobile.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/gomobile.php 214 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "gomobile" - Line: 275 - File: inc/plugins/gomobile.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/gomobile.php 275 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 280 - File: inc/plugins/gomobile.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/gomobile.php 280 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 544 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 544 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 805 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 805 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 805 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 805 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 33 - File: global.php(866) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(866) : eval()'d code 33 errorHandler->error
/global.php 866 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 931 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 931 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5151 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 5151 errorHandler->error
/global.php 931 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions.php 5171 is_member
/global.php 931 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions.php 5171 is_member
/global.php 931 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 298 - File: inc/plugins/gomobile.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/gomobile.php 298 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcefooter
/global.php 1154 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "mybb" - Line: 1996 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 1996 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 665 mark_thread_read
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(768) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/showthread.php(768) : eval()'d code 5 errorHandler->error
/showthread.php 768 eval
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions_user.php 847 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions_user.php 847 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 1110 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1549 - File: showthread.php PHP 8.1.33 (Linux)
File Line Function
/showthread.php 1549 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1576) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/showthread.php(1576) : eval()'d code 30 errorHandler->error
/showthread.php 1576 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1576) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/showthread.php(1576) : eval()'d code 79 errorHandler->error
/showthread.php 1576 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I change the forward direction of VZBike in unity editor ?
#1
I already know that "A" and "D" Key can change the bike direction in the unity editor, but I cannot do the same thing with the oculus HMD. In other words, I want to rotate the bike when my head leans left or right. So, where can I get the relative function about this. 
Thank you very much.
Reply
#2
Hi, you are talking about using our VZfit SDK for Unity?

If you are playing its test.scene with an Oculus (Rift) headset on PC, then the relative bike direction should change when you lean left and right from your initial calibrated position. That is what A and D mimic when "leaning" without a headset.

It sounds like that is not working for you as it should. First, is your Unity project setup properly to work with a headset? The latest versions of Unity use an "XR plugin management" where you can select Oculus. When you hit Play do you then see the scene correctly in your Oculus? If you are still playing on a keyboard rather than actual bike in Unity, can you calibrate using enter+backspace? And move forward when pressing spacebar?

If all those things are true, then leaning to left or right should change the relative bike direction while you are moving forward. Note leaning specifically means position offset, it does not mean tilting your head. And it specifically only changes the relative bike direction and avatar offset direction, it does not also rotate your VR reference frame and avatar default direction unless you also "look" in the same direction you are leaning. That behavior is how VZfit keeps your eyes and ears in sync in VR and be able to either swerve around things in a straight line or go around curves.

If you want to change or debug that behavior, the logic is in VZPlayer.cs, using lean offsets produced by VZController.cs. Happy to help further when you get there!
Reply


Forum Jump:


Users browsing this thread: