CINEMACHINE - Camera FOLLOW PLAYER (Unity Beginner Tutorial)

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • Lets make the cinemachine camera follow and track the player without a single line of code and all this can be done inside Unity with relative ease. This can be done in most modern versions of Unity and you can follow this tutorial to get yourself started!
    🎁 Get OVER 185+ Scripts, Projects and premium content on my PATREON HERE:
    ➡️bit.ly/SpeedTutorPatreon
    ·························································································
    🔥 INSANE UNITY SAVINGS: bit.ly/UnitySalesHub
    🕹️Unity Sales: bit.ly/UnitySalesHub
    🕹️SpeedTutor Unity Store: bit.ly/STUnityStorePuzzlePacks
    🕹️Unity New Release Discount Sale: prf.hn/l/BdvEmg3
    🕹️Unity WELCOME2023 Offer: bit.ly/UnityWelcome2022OFFER
    🔥 INSANE HUMBLE SAVINGS: bit.ly/HumbleBundleDeals
    🕹️Survival Game Creation: bit.ly/ZenvaSurvivalGameTutor...
    🕹️Military Assets Bundle: bit.ly/Military3DAssetsBundle
    🕹️Unreal Engine Book Tutorial Bundle: bit.ly/UE5GameDevBooksBundle
    🔥Unity Materials / Files & More:
    🕹️CGAxis PBR Deals: bit.ly/CGAxisPBRDeals
    🕹️Synty Assets: bit.ly/SyntyLowPolyAssets
    🔥 UNITY SUBSCRIPTIONS:
    🕹️Unity Plus: bit.ly/UnityPlusDeals
    🕹️Unity Pro: bit.ly/UnityProDeals
    ·························································································
    💰BIG DISCOUNTS on my website, for my UNITY ASSETS:
    ➡️www.speed-tutor.com
    💬Join the Community Discord:
    ➡️ / discord
    💝 Make a donation to the channel:
    ➡️www.paypal.me/speedtutor
    ·························································································
    ⬇️ SpeedTutor Puzzle Assets:
    🧩Unity Store: bit.ly/STUnityStorePuzzlePacks
    🧩My Website Discounts: www.speed-tutor.com/
    ⬇️ SpeedTutor Best Selling Assets:
    🧩Adventure Puzzle Kit: bit.ly/STAdventurePuzzleKit
    🧩 Note & Letter System: bit.ly/STNoteLetterSystem
    🧩Examine System: bit.ly/STExamineSystem
    🧩Keypad System: bit.ly/STKeypadSystem
    ⬇️SpeedTutor Model Packs:
    🧩Unity Store: bit.ly/STUnityStoreModelPacks
    🧩My Website Discounts: www.speed-tutor.com/
    My Assets include: Gas Mask, Flashlight, Generator, Themed Key , Padlock, Phone, Chess Puzzle, Lever, Valve Puzzle, Fuse Box & Safe Systems. Cardboard, Debris, Massive Models and more!
    ························································································
    ⭐ Connect with me:
    💬| Discord: / discord
    🐦| Twitter: / speedtutor
    📱 | Facebook: / speedtutoruk
    🖥 | Website: www.speed-tutor.com
    ·······················································································
    00:00 Introduction
    00:30 Installing Cinemachine
    01:06 Adding a Cinemachine Camera
    01:47 Making the Camera follow our player
    02:50 Fixing Camera Rotation with World Space
    03:20 Looking at additional settings
    04:03 Finding Cinemachine Documentation for more information
    ·························································································
    #SpeedTutor #Unity #Cinemachine

КОМЕНТАРІ • 77

  • @SpeedTutor
    @SpeedTutor  2 роки тому +2

    Lets follow this player around, no matter where he goes! :)
    🔥UNITY SAVINGS: bit.ly/UnitySalesHub
    🔥SpeedTutor Unity Store: bit.ly/STUnityStorePuzzlePacks
    🔥HUMBLE SAVINGS: bit.ly/HumbleBundleDeals

  • @realworksanimation
    @realworksanimation Рік тому +1

    that world space option had driven me crazy before i found out
    thanks much!!!

    • @SpeedTutor
      @SpeedTutor  Рік тому

      Haha, tell me about it! It drove me to the edge too. I'm glad I could help! :D

  • @ryangiven6047
    @ryangiven6047 Рік тому +2

    Great Video, definitely helped with a project.

    • @SpeedTutor
      @SpeedTutor  Рік тому

      Amazing, good luck with your project!

  • @deadbroadcastpc
    @deadbroadcastpc 2 роки тому +5

    Cinemachine is such a great tool. Very customizable

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      I think it is a great tool! I've not used it until very recently! :)

  • @judy-n
    @judy-n 4 місяці тому +1

    Super helpful video, thank you!!

    • @SpeedTutor
      @SpeedTutor  4 місяці тому

      You're very welcome :) What are you creating?

  • @SketchedbySte
    @SketchedbySte 2 роки тому +3

    that sphere game looks better than most of the PS5 games I own so far

  • @coolsachin2737
    @coolsachin2737 Рік тому +1

    Thank You so much.

  • @davestomper3428
    @davestomper3428 2 роки тому +2

    Thankfully this video saved me and I can actually use Cinemachine a little now or at least use it enough to get past it to make games. But I truly hate Cinemachine camera system it is way more difficult than it has to be in my opinion. Unreal 4 and 5's cameras are easy to use in comparison and don't use all of the crazy settings and they use UE4 for making movies and tv productions trust me I am not knocking Unity I just wish they would have made it make better sense.

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      I know what you mean, they need a good way to structure it and better documentation and videos on the matter. Thanks for checking this out and best of luck with all your other projects! :)

  • @alejandroalvarezvarela98
    @alejandroalvarezvarela98 Рік тому +4

    Thanks! I spent like 4 hours trying to know why my camera doesn't follow my character

  • @KalponicGames
    @KalponicGames 2 роки тому

    Request to make a tutorial where you capture screenshot of your game prefabs at regular intervals with transparent background. Also, output and save the image at desired resolution and location. Maybe also make gif from unity to capture gameplay

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      That's a very particular set of questions, I'd recommend creating a blank scene with a solid colour in the background, then take screenshots of your desired prefabs in there! :) For gifs, capture some gameplay with whatever software you like, or Unity capture software from the asset store, chop it down to less than 15 seconds, then upload to Giphy! That's what I do! :)

    • @KalponicGames
      @KalponicGames 2 роки тому

      @@SpeedTutor well wanted to learn how to capture unity 3D animations inside unity. I know you can do that in blender.

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      You could use any recording software to do it but you can also get a Unity recorder from the store which might help you out! :)

  • @a.technology1446
    @a.technology1446 2 роки тому +1

    Long time Matt, 👍

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Hey man, how are you getting on?

    • @a.technology1446
      @a.technology1446 2 роки тому +1

      A lot of code headaches Matt, I'm running from it 😅

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      That's what happens on a regular basis! Haha. What's giving you the biggest headache?

    • @a.technology1446
      @a.technology1446 2 роки тому +1

      @@SpeedTutor simply my brain does not accept and like the idea of whole coding, but I have to deal with since we like game development.

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      Haha, when I learn something new - Something else important falls out, so it's a battle! :P

  • @bigboymateo3756
    @bigboymateo3756 Рік тому

    How do I make it so the soft spots don't go away and keep the camera smaller.

  • @animemusic9546
    @animemusic9546 2 роки тому +2

    So does the player needs to be in hierarchy??
    What if I am instantiating my prefab on start

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      I'd imagine you'd need to make sure your camera is following and looking at your player by referencing the parameter in the cinemachine camera! :)

    • @animemusic9546
      @animemusic9546 2 роки тому

      @@SpeedTutor I solved the problem , but thanks for replying... what I did is I Instantiated the prefab in awake method and in separate script for cinemachine , I set the prefab to be followed in start method...this works perfectly fine!!!

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      That's awesome, thanks for sharing your technique! This may help some others in the future! :)

  • @dethrow
    @dethrow 2 роки тому +1

    @SpeedTutor Hey Matt! I was wondering if you could help me with a quick problem I'm having with Cinemachine? I'm designing a Lego One Button Microgame using a One Button Minifigure, and Cinemachine was recommended to use to get the camera to pan and follow my minifig. I tried this tutorial, but it still does not track my player. Do you have any suggestions? Thank you!

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      So what happens? When you add your player character to the tracking slot it should follow automatically, it doesn't do this? You don't have any scripts interfering with camera movement?

    • @dethrow
      @dethrow 2 роки тому

      @@SpeedTutor I don't have any scripts in my game at the moment, but I did use the Tutorial File as a starting point for my project, so I did not have any interaction with placing the original camera.

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Maybe I'm confused with what you just said? :( Maybe explain what's going on again?

    • @dethrow
      @dethrow 2 роки тому +1

      @@SpeedTutorIt's all good now because the hard drive on my computer gave out, so I can't fix the issue at the moment. Thanks for trying to help me out tho!

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Oh no, good luck with fixing the NEW issue! There is always something new, haha.

  • @deraminator945
    @deraminator945 2 роки тому +1

    Now pls make it turnable with the mouse and making the balls forward movement depending on the cameras looking direction 😄

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      As in, you make an a table below the sphere move and it moves like that?

    • @deraminator945
      @deraminator945 2 роки тому +1

      @@SpeedTutor I mean it more like a casual third person camera 😄 when you turn the camera around the ball and lets say your camera is heading south, then the new forward of the ball is also south

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      I see what you mean! There might be something in that by default, I'm not sure how to even search what this is! Haha.

  • @perspectives2202
    @perspectives2202 Рік тому

    appreciate for your tutorial. Whenever I try to use a virtual camera or a freelook it moves my player & camera towards somewhere rapidly without in the play mode. I could not find any solution for that :// may you have any idea or cinemachine is broken? Unity version 2021.3.16f1

    • @SpeedTutor
      @SpeedTutor  Рік тому

      I don't use cinemachine very often, so I can't say for certain. Can you try in a new project? Different version of Unity also?

    • @perspectives2202
      @perspectives2202 Рік тому +1

      @@SpeedTutor I figured it out, it worked just by removing & re-installing package. Thank you for reply again!

    • @SpeedTutor
      @SpeedTutor  Рік тому

      Oh awesome, good work. Thanks for letting me know! :)

  • @AfternoonLemon
    @AfternoonLemon 9 місяців тому

    I can't see the video properly, and these settings are out of date for Unity 2022 unfortunately. They have removed the Follow Offset.

  • @cfl3845
    @cfl3845 7 місяців тому +1

    👍

    • @SpeedTutor
      @SpeedTutor  7 місяців тому

      Did it help?

    • @cfl3845
      @cfl3845 7 місяців тому +1

      @@SpeedTutor yes yes)

  • @Allplussomeminus
    @Allplussomeminus 2 роки тому

    Any way to hook up camera control to gamepad?

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      You'd just need to edit your script to take into account an input option. You could use Unity's newer input system or a refined input system on the store like rewired. :)

    • @Allplussomeminus
      @Allplussomeminus 2 роки тому +1

      @@SpeedTutor found out that I had to use the 'string' that referenced the right stick movements in the new Input System.

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Awesome! You're a hero.

  • @Danielingame
    @Danielingame 8 місяців тому

    I cant see cinemachine at the top ive installed it tho?

    • @SpeedTutor
      @SpeedTutor  8 місяців тому

      Did you try and restart Unity?

    • @Danielingame
      @Danielingame 8 місяців тому +1

      @@SpeedTutor Oh yea it works now thanks!

    • @SpeedTutor
      @SpeedTutor  8 місяців тому

      Haha, I'm glad it's fixed :)

  • @lidor2
    @lidor2 2 роки тому

    when i try it i cant fint the body in the cm vcam can someone help me?

    • @SpeedTutor
      @SpeedTutor  2 роки тому +1

      Body of your controller?

    • @lidor2
      @lidor2 2 роки тому +1

      @@SpeedTutor the body like in 1:41

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Yours doesn't have it? Is it something similar?

    • @lidor2
      @lidor2 2 роки тому

      @@SpeedTutor no i dont something similar

  • @mirzaayaan3214
    @mirzaayaan3214 2 роки тому

    Unable to find Cinemachine in package manager

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Did you select the wrong filter in the dropdown in the top left?

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    Matt Ive got an Idea, Ive bought SOO MANY Assets from the store that have cost me £1000's like Gaia,curved world, Destructable assets etc etc.. And sometimes If I dont know how to use it within 5 min I forget about it, I dont take the time to learn them, (Time is Precious!) What about doing tutorials off assets from the store?..The ones that need you to look throu the manual lol !?

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Haha, I'll see what I can do! Of course, it takes me time to learn them too! Hahahaha.

    • @random_precision_software
      @random_precision_software 2 роки тому +1

      @@SpeedTutor it's a pity I couldn't "gift" Roy some assets I've bought for you to learn, but when that's classed as piracy.😦

    • @SpeedTutor
      @SpeedTutor  2 роки тому

      Don't worry about it, my friend! I've probably got most of them anyway! Hahaha.

  • @pedro8769
    @pedro8769 Рік тому

    Bad tutorial