Hello! I know it may be the wrong place to post but at this point I have no idea where else to ask.
I wanted to create a small vr mod for Oculus GZdoom. What I wanted to implement is a script that crouches player whenever I crouch in my headset (so player have to physically crawl under obstacles without pressing crouch key). But I stumbled at the fact I can't get vr camera z position.
.Camera.pos.z - always returns actor's position above ground which is 0
.ViewHeight - always returns 44 when standing and 22 when crouching
I am testing my mod in normal GZDoom, s I'm not even sure it's even possible to get actual position of VR camera in real time.
In case anyone can point me in right direction It will be much appriciated!
I wanted to create a small vr mod for Oculus GZdoom. What I wanted to implement is a script that crouches player whenever I crouch in my headset (so player have to physically crawl under obstacles without pressing crouch key). But I stumbled at the fact I can't get vr camera z position.
.Camera.pos.z - always returns actor's position above ground which is 0
.ViewHeight - always returns 44 when standing and 22 when crouching
I am testing my mod in normal GZDoom, s I'm not even sure it's even possible to get actual position of VR camera in real time.
In case anyone can point me in right direction It will be much appriciated!
Statistics: Posted by Ak__01 — Sun Jan 21, 2024 9:13 am