I have been attempting to make a VR character but the head collider for the character won’t match its Y position with the VR head Y position. When I move my head set up and down, the part in game moves but much slower than the headset as if it has some down scaling to its movement.
This is in the local script and sets a bodyposition mover which is inside the head collider part to a certain y position above the root
game:GetService('RunService').RenderStepped:Connect(function()
local LC = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)
local RC = VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
local Head = VRService:GetUserCFrame(Enum.UserCFrame.Head)
print(Head)
Part.Head.BodyPosition.Position = Vector3.new(Part.Head.BodyPosition.Position.X,(Part.LocoMotionBall.CFrame*CFrame.new(Head.p*HeadScale)).Position.Y+10,Part.Head.BodyPosition.Position.Z)
game.ReplicatedStorage.MoveClone:FireServer(ServerPart, Part.LocoMotionBall.Position, Part.Head.Position, Part.Head.Orientation)
Cam.CFrame = Part.Head.CFrame
end)
it works perfectly fine before I move the headset up or down but when I do, the head collider moves very slowly up and down and doesnt align with the y position of the physical headset and I have no idea why it is doing this so any help would be appreciated.