TheNexusAvenger / Nexus-VR-Character-Model

Maps Roblox characters to the VR inputs of players.
MIT License
66 stars 12 forks source link

How I can get VR player camera? #24

Closed Pickramag closed 1 year ago

Pickramag commented 1 year ago

How I can get VR player camera? For Example how I can equalize Camera.CFrame = part.CFrame?

TheNexusAvenger commented 1 year ago

I assume you mean to get the VR camera CFrame? Use Workspace.CurrentCamera:GetRenderCFrame(). Applies to all VR and non-VR systems.

Pickramag commented 1 year ago

I use this to move Camera:

local Camera = workspace.CurrentCamera Camera.CameraType = Enum.CameraType.Scriptable Camera:GetRenderCFrame() local pos = Vector3.new(0, 10, 0) local lookAt = Vector3.new(10, 0, 0) local CameraCFrame = CFrame.new(pos,lookAt) workspace.CurrentCamera.CFrame = CameraCFrame

But this didn't work. And this is in localscript

TheNexusAvenger commented 1 year ago

Why do you want to do that? Nexus VR Character Model manages the camera for you.

Pickramag commented 1 year ago

I want move Camera to Jumpscare instead teleport player. Or how I can manage Nexus VR Character Model?

TheNexusAvenger commented 1 year ago

That use case isn't supported at the moment. The camera is always tied to the player with no supported way to disable it.

Pickramag commented 1 year ago

ok..