So I’m trying to make a third person camera that’s compatible on mobile, pc, and xbox. It works fine on PC, but I’m not sure how I’d accomplish the same camera movement mechanics on mobile or xbox. Below is what it currently looks like.
https://gyazo.com/9ebda26c111293b44f53302d53b93fb9
The closest game I could think of that has what I’m thinking of is Fortnite. The camera mechanics are the same across all 3 platforms.
input_service.InputChanged:Connect(function(io)
if io.UserInputType.Name=='MouseMovement' then
local delta=io.Delta
yaw=yaw-delta.x*camera.yaw_sens*to_rad
pitch=clamp(pitch-delta.y*camera.pitch_sens*to_rad,min_pitch,max_pitch)
camera.yaw=yaw
camera.pitch=pitch
look_angles=cframe_angles(0,yaw,0)
*cframe_angles(pitch,0,0)
end
end)
That’s the code I’m currently using for movement on PC to detect any changes. Honestly not sure how to approach this on client/xbox because I’ve never really dealt with stuff cross platform related. Any assistance would be super helpful.