Hi! I have a problem with camera movement on mobile devices
The video shows that the camera is moving even when I don’t move the mouse(finger)
So, I use :GetMouseDelta() and my camera script is processed using BindToRenderStep
MouseDelta doesn’t become 0.0 until I release my finger and so it keeps moving
Here is the script:
input.MouseBehavior = Enum.MouseBehavior.LockCenter
local md = input:GetMouseDelta()
script.axes.x.Value += math.rad((md.X * 0.25) * -1)
script.axes.y.Value += math.rad((md.Y * 0.25) * -1)
script.axes.y.Value = math.clamp(script.axes.y.Value, math.rad(-90), math.rad(90))
camera.Focus = CFrame.new(camera.CameraSubject.Position)
camera.CFrame = camera.Focus * CFrame.fromEulerAnglesYXZ(script.axes.y.Value, script.axes.x.Value, 0)