Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED] How to allow players to draw their room in VR?

Asked by
Benbebop 1049 Moderation Voter
4 years ago
Edited 4 years ago

In some VR games you can run a controller along the walls of your rooms so that when you get close to the wall it will warn you. Is it possible in Roblox? I know that you can track the VR headsets position, but imagine asking a player to run their headset along the wall. Sounds kind of weird to me. And say I got the shape of their room, how could I make it so that only when you get close the wall it shows up to you?

Also is there a way to enable VR mode as a developer without a VR headset?

I've found a solution to my problem.

HeadScale = 1
Cam = workspace.CurrentCamera
Cam.HeadScale = HeadScale

local cfRH = VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
RightHand.CFrame = (Cam.CFrame*CFrame.new(cfRH.p*HeadScale))*CFrame.fromEulerAnglesXYZ(cfRH:ToEulerAnglesXYZ())

Source

0
I think what you mean by VR Mode is a VR simulation (kinda like the mobile simulator but VR). I do not think roblox has that. 123nabilben123 499 — 4y
0
Then what is VRService for? Benbebop 1049 — 4y
0
idk if this will help... But Roblox only has Virtual Reality for mobile devices not computers or laptops. turbomegapower12345 48 — 4y
0
on the official Roblox Support website it says "Roblox supports Oculus Rift and HTC Vive." https://en.help.roblox.com/hc/en-us/articles/208260046-Roblox-VR Benbebop 1049 — 4y
0
oh my bad turbomegapower12345 48 — 4y

Answer this question