Right analog stick camera controls in Unity with Cinemachine

Ойындар

Right analog stick camera controls in Unity with Cinemachine
Be sure to check out my Unity for Complete Beginners course on Udemy here: www.udemy.com/course/learning...
In this video I will show you a quick way to adjust the Unity Input Manager settings to allow you to control Cinemachine Free Look Camera's with the right analog stick on a gamepad.
This video is on using the original/old input system in Unity. This can be done with the new input system as well but with different steps.
Donate: streamlabs.com/metalstormgames
Subscribe: / metalstormgames
Discord: / discord
Twitter: / metalstormgames
#unity #unitytutorial #gamedev #indiedev #unity3d #unity2d #madewithunity

Пікірлер: 60

  • @MetalStormGames
    @MetalStormGames2 жыл бұрын

    If you do want to see some basic Cinemachine videos in the future let me know below. Thanks for watching.

  • @Nulify-jc4fs
    @Nulify-jc4fs9 ай бұрын

    Thanks dude this is exactly what I was looking for! Quick note though, If the camera starts moving left infinitely and never stopping, then change the mouse X to the third joystick axis and mouse Y the 6th.

  • @MetalStormGames

    @MetalStormGames

    9 ай бұрын

    Awesome thanks for the tip

  • @ArcticWolf82

    @ArcticWolf82

    2 ай бұрын

    This fix only* works for PS 4 controllers, (*I am not sure about Xbox because I don't have one.) use the unity community controller mapping documentation to figure out which axis and buttons are default to your specific controller (I have a generic USP gamepad) and map the X and Y axis, accordingly. I hope this helps.

  • @Amanat722
    @Amanat7222 жыл бұрын

    omg man. I wasted 10 hours today to find a solution for the right stick to work as a mouse in Unity. you are an angel. thank you so much. love you.

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    Glad I could help! I remember the first time I was trying to get this to work it took forever to figure out.

  • @VyvyanTheGreat
    @VyvyanTheGreat Жыл бұрын

    Exactly what I needed, quick and concise. Thanks so much :D

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    Glad it helped! Thanks for watching I appreciate it

  • @sammaz1032
    @sammaz10322 жыл бұрын

    thank you, after 2 year buying my controller I am done learning how to use my right joystick.

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    Glad I could help!

  • @marco200002010
    @marco200002010 Жыл бұрын

    Thanks for the information. Really helpful. I was trying to make joystick controller works like a first person camera to mobile device.

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    Glad it helped, took me a while to figure out when I was searching how to do it so figured it would help others a bit

  • @colinmang
    @colinmang2 жыл бұрын

    Awesome man!

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    Thanks!

  • @Diamond-yn4nu
    @Diamond-yn4nu Жыл бұрын

    Well done pro this video is the only one of it's kind i search in KZread more than 1 day & finally found your video keep going forward making such videos i hope your channel grows, like & subscribe 👍

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    Thanks, glad it helped out. I will be trying to get more active again after the summer and get a lot more regular content up.

  • @Diamond-yn4nu

    @Diamond-yn4nu

    Жыл бұрын

    @@MetalStormGames There are a lot of long videos, and their content is repeated. It may be a short video, but its content is more specialized, and this is more useful, good luck

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    @@Diamond-yn4nu Thank you, really appreciate hearing that

  • @RockyDogStudiosTV
    @RockyDogStudiosTV8 ай бұрын

    Thank you!!!!! So helpful!!

  • @MetalStormGames

    @MetalStormGames

    8 ай бұрын

    Glad it helped!

  • @azazel7502
    @azazel7502 Жыл бұрын

    Thank you it helped me so much

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    You're welcome! Thanks for watching.

  • @5ft9istall
    @5ft9istall2 жыл бұрын

    thanks a lot man, really helpful:)

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    Awesome, glad to hear that.

  • @tufanaydin6340
    @tufanaydin6340 Жыл бұрын

    Thanks for the basic tutorial

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    No problem! hope it helped out

  • @spikku
    @spikku10 ай бұрын

    Thank you!

  • @MetalStormGames

    @MetalStormGames

    10 ай бұрын

    You're welcome!

  • @eugenioricart676
    @eugenioricart6762 жыл бұрын

    Si Seño, Great!

  • @perfectoctogon2392
    @perfectoctogon23922 жыл бұрын

    That's so fucking smart, holy shit...

  • @karlschanzl
    @karlschanzl2 жыл бұрын

    Perfect... THX...

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    thanks for watching, glad it helped

  • @MrBrianvictor
    @MrBrianvictor Жыл бұрын

    Muito Obrigado, você me ajudou muito.

  • @whatismyname2070
    @whatismyname2070Ай бұрын

    How do you control its movement with left stick?

  • @perfectoctogon2392
    @perfectoctogon23922 жыл бұрын

    I'm having some trouble. The Horizontal axis sometimes records the value as -1 instead of 0. It's not an issue with the controller or the dead zone (or sensitivity). It just randomly starts rotating the camera to the left and never stops. Any help would be appreciated!

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    Never experienced that so not too sure off hand but I can try poking around to see if I think of anything. I dont use this too often but the time I wanted to it took forever to figure it out so figured it would make a simple video to show once it worked. If I find anything will let you know but I am not too advanced with Cinemachine

  • @bellocktx5800

    @bellocktx5800

    Жыл бұрын

    I have exactly the same issue. Any solution?

  • @brand2807

    @brand2807

    Жыл бұрын

    @Perfect Octogon@@bellocktx5800 A little late but try messing with the Axis for Mouse X and Mouse Y you created. I found making the Mouse X the 3rd Axis, and Mouse Y the 6th Axis worked on my DS4 Controller. Hope this helps.

  • @cupsy1567

    @cupsy1567

    5 ай бұрын

    @@brand2807 you are the actual godsend. my goodness it is insane how hard it has been to find documentation on how to get a 3rd person camera control working for GAMEPAD. FOR CONTROLLER. TWIN STICKS. but lo and behold this video got it half the way but THIS COMMENT carried it over the finish line. thank you so much man.

  • @guuutsss
    @guuutsss Жыл бұрын

    Wowwww

  • @charlieratcliffe7294
    @charlieratcliffe729411 ай бұрын

    Awesome vid, nearly got it working! could you explain why the Y axis isn't working? It wont move at all, and all my spellings are correct. It immediately puts the value at 1 when playing. Thanks!

  • @charlieratcliffe7294

    @charlieratcliffe7294

    11 ай бұрын

    scratch that - fixed it! Just changed Mouse Y to 7th axis in case anyone else gets this

  • @MetalStormGames

    @MetalStormGames

    10 ай бұрын

    Awesome glad to hear and thanks for posting the info

  • @LeFede
    @LeFede Жыл бұрын

    How can I do it with the new Unity Input system?

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    I havent done a lot other than the basics with the new input system yet so not sure off hand, I would assume there is a component or setting on cinemachine that will work almost automatically with it though but would have to dig in to it to see sorry.

  • @shypno3950
    @shypno39502 жыл бұрын

    How can I make the Y Axis look up and down not zoom in?

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    I am not sure off hand without digging in to it but I think there might be options for that built in to Cinemachine but I am not sure if it is the free look camera or a different camera type. I will make a note to try checking in to that but it might be a bit before I get to it.

  • @nikro7239
    @nikro7239 Жыл бұрын

    This game looks great. is it out already?

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    This was not actually anything I finished, just a little prototype I was playing around with to test some mechanics out. I should go back to it though it was really fun.

  • @nikro7239

    @nikro7239

    Жыл бұрын

    @@MetalStormGames ye physics look really good

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    @@nikro7239 Thank you, they were really fun. I always wanted to make a game like Twisted Metal and should attempt it again.

  • @abdoulraoufgambo
    @abdoulraoufgambo Жыл бұрын

    you have a nice car controlller ! can you tall me your aproach ?

  • @MetalStormGames

    @MetalStormGames

    Жыл бұрын

    I dont have that project anymore to look at the specifics but what I did was I made 4 raycasts at the tire positions aiming down to look for the ground and they would apply downlard force to the ground on the car. I will see if I can dig up a project somewhere. I found the idea from a tutorial on youtube but I can not recall which one.

  • @abdoulraoufgambo

    @abdoulraoufgambo

    Жыл бұрын

    @@MetalStormGames cool thank you so much

  • @3Dmaven
    @3Dmaven2 жыл бұрын

    How did you get rid of the jitter?

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    I have never really had any issues with jitter on cinemachine cameras. Maybe its the movement controller of your object causing it?

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    You may want to try a new project just for a test to see if its something with cinemachine settings or your project, that could help narrow it down a lot atleast.

  • @LeFede

    @LeFede

    Жыл бұрын

    Try setting Rigidbody -> Interpolate -> Interpolate, and Rigidbody -> Collision Detection -> Continuous

  • @hanjarake_taro
    @hanjarake_taro2 жыл бұрын

    not good

  • @MetalStormGames

    @MetalStormGames

    2 жыл бұрын

    What is not good?

Келесі