I’m trying to make a character framework for VR, however I have a little problem with the camera.
I managed to get the character to move and face where the user is facing and all of that stuff, but I have one issue with the player physically moving, when the headset moves the character wont move with it, this is what it looks like when the player takes a few steps in real life:
now I understand I need to make character to follow where my headset is and I tried doing this:
game.Workspace.Head.CFrame = Camera.CFrame * value:ToObjectSpace(char.Head.CFrame)
--value is the position of the headset
--setting the part to try and visualize where the player should be(the block should be inside the camera)
but this is the result i get:
I’m pretty much lost, I’m not sure what I’m doing wrong and how to go on about it
keep in mind all of this happens with
player.CameraMode = Enum.CameraMode.LockFirstPerson