Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0

VR - SetOffset Rotation


Go to solution Solved by Josh,

Question

Hi All!

I've been trying to implement free locomotion in VR and learned quite a bit in that process. First a question:

Is there a way to set a VR Offset Rotation value in a similar way like VR: SetOffset(vec3) either way through Lua (which I very doubt) or maybe C++ through openVR library? (If so, how?)

The lack of above function causes two problems:

- One is the inability to implement snap turn in Roomscale mode (Any attempt to "set" the camera seems to be ignored)

- The second one is that in Seated mode, whenever I try to manipulate the player camera and adjust the VR Offset accordingly, after turning the camera "in game" the vr offset is completely off (as It can't be turned). 

Please help guys, as it is a dealbreaker for my project :(

Kind Regards:

Provector

Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Here's the syntax:

        static void SetOffset(const Vec3& position);//lua
        static void SetOffset(const float x, const float y, const float z);//lua
        static void SetOffset(const float x, const float y, const float z, const float pitch, const float yaw, const float roll);//lua
        static void SetOffset(const Vec3& position, const Vec3& rotation);//lua
        static void SetOffset(const Vec3& position, const Quat& rotation);//lua

 

Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...