MetalOS Posted December 25, 2023 Share Posted December 25, 2023 Hi guys, Does anyone have a simple code example for managing movements in VR? Forward, backward, right, left, hand display....I'm new to LUA language and I'm having trouble understanding how to use the documentation with the doc. Thank you in advance for your help. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 25, 2023 Share Posted December 25, 2023 This is the command you will need for offsetting the player's position from the real position: https://www.ultraengine.com/learn/Hmd_SetOffset Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
MetalOS Posted December 27, 2023 Author Share Posted December 27, 2023 Thanks for your response Josh. I had seen this command but I'm having trouble understanding how to put it into practice. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 27, 2023 Share Posted December 27, 2023 By default, your position in the real world and virtual world are the same. If you call SetOffset(1,0,0) then your position in the virtual world will be shifted one meter to the right. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
MetalOS Posted December 27, 2023 Author Share Posted December 27, 2023 Ok I understand better. Thanks Josh. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.