#Mobile Camera Control ignore Thumbstick

1 messages · Page 1 of 1 (latest)

spark skiff
#

how can i ignore the thumbstick when using TouchedMoved. my code makes a custom camera system similar to GTA V but ive figured that MouseMoved event are not compatible with mobile

heres the script

    if input.UserInputType == Enum.UserInputType.Touch then
        xAngle = xAngle-input.Delta.x*0.4
        --Clamp the vertical axis so it doesn't go upside down or glitch.
        yAngle = math.clamp(yAngle-input.Delta.y*0.4,-80,80)
    end
    
end)```