PERFECT Weapon Aiming! (IK, Unity Tutorial Third Person Shooter)

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • 💬 Let's learn how to make a character aim perfectly at a target.
    🌍 Get my Complete Courses! ✅ unitycodemonke...
    👍 Learn to make awesome games step-by-step from start to finish.
    🎮 Get my Steam Games unitycodemonke...
    🔴 RELATED VIDEOS 🔴
    Awesome Third Person Shooter Controller! • Awesome Third Person S...
    Make your Animations DYNAMIC with Animation Rigging! • Make your Animations D...
    How to get Mouse Position in 3D and 2D! • How to get Mouse Posit...
    💬 Let's learn how to make a character aim perfectly at a target.
    This is essential for making a good shooter controller, without it the character will simply aim straight forward towards wherever your animation is aiming rather than aiming perfectly at the exact position in the world.
    This is pretty easy to do thanks to the awesome Unity Animation Rigging package!
    🌍 Get Code Monkey on Steam!
    👍 Interactive Tutorials, Complete Games and More!
    ✅ store.steampow...
    If you have any questions post them in the comments and I'll do my best to answer them.
    🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
    See you next time!
    📍 Support on Patreon / unitycodemonkey
    🎮 Grab the Game Bundle at unitycodemonke...
    📝 Get the Code Monkey Utilities at unitycodemonke...
    #unitytutorial #unity3d #gamedev
    --------------------------------------------------------------------
    Hello and Welcome!
    I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.
    I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
    I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
    You can see my games at www.endlessloopstudios.com
    --------------------------------------------------------------------
    - Other great Unity channels:
    Unity - / unity3d
    Brackeys - / brackeys
    Dani - / @danidev
    Jabrils - / @jabrils
    BlackthornProd - / @blackthornprod
    Sykoo - / sykootv
    Jason Weimann - / @unity3dcollege
    Jonas Tyroller - / @jonastyroller
    --------------------------------------------------------------------
    - Website: unitycodemonke...
    - Twitter: / unitycodemonkey
    - Steam: store.steampow...

КОМЕНТАРІ • 345

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  2 роки тому +7

    🌍 Get 95% OFF on Unity Mega Bundles assetstore.unity.com/?aid=1101l96nj&pubref=perfectweaponaim
    ✅ Get my Complete Courses! ✅ unitycodemonkey.com/courses
    🔴 RELATED VIDEOS 🔴
    Awesome Third Person Shooter Controller! ua-cam.com/video/FbM4CkqtOuA/v-deo.html
    Make your Animations DYNAMIC with Animation Rigging! ua-cam.com/video/LEwYmFT3xDk/v-deo.html
    How to get Mouse Position in 3D and 2D! ua-cam.com/video/0jTPKz3ga4w/v-deo.html

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

      So what could the reasons be if it dont work at all?

    • @pudgystump
      @pudgystump 6 місяців тому

      Where did you get the standard animations you're using?

    • @王一次缘结一次绳
      @王一次缘结一次绳 6 місяців тому

      @@NordicNjal I do not know the reason.I only know if there is only one rig in rig builder,there would not be an error.I only know the result.

  • @salazarlee
    @salazarlee Рік тому +32

    If anyone has this error - "The TransformStreamHandle cannot be resolved" - change the Rig object parent from Player Armature (the main Parent) to "Root" so the object stays near the "Hips" object

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

      Yes rig has to be in the same parent as the root
      -GameObject
      --root
      -head
      -etc
      --Rig
      --Cam

    • @amirhosseinmaali309
      @amirhosseinmaali309 11 місяців тому

      Tnx Dud u r a hero

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

      ​@@piotrgora5715 thanks GIGA CHAD

    • @thomascircle245
      @thomascircle245 Місяць тому

      What if mine is still in the Root and still giving that error? Also by "in", do you mean, "a direct child of"?

  • @C_Corpze
    @C_Corpze 2 роки тому +46

    Even as someone who works in Unreal, I can still learn so much from your videos!
    Unreal has like it's own way of achieving nearly the same thing in a very similar way so I can apply a lot of your tutorials to my own projects as well. Thank you!

    • @magnusm4
      @magnusm4 Рік тому +3

      Likewise I watched an Unreal tutorial on making Genji's dash. And I could easily copy the logic and just write it in C# form.

  • @alekjwrgnwekfgn
    @alekjwrgnwekfgn 2 роки тому +9

    I hope you are making an extended (paid) tutorial series for a GTA 3rd person game using Synty assets. There are probably 10’sk Synty asset owners who would buy that - maybe 100’sk Synty asset owners- partner with Synty Studios (who might provide a basic pack to go with your course) and you would have a massive market.

  • @davdev793
    @davdev793 2 роки тому +17

    Thats a underexplored theme IMO, took hours searching to get a procedural lever pulling animation to work. Thanks for bringing it. It was on point =)

  • @TMosier88
    @TMosier88 2 роки тому +10

    If anyone else runs into the " Cannot resolve because it is not a child of the etc etc."
    Move your Rig 1 onto the character. If you are following along with Synty Assets, I put it under the Root (not in the Root, under)
    Hope that helps someone else, this was an annoying issue.

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

      Omg!!! I had the same issue! Thank you so much! It was so annoying 😅

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

      Thank You so much for this info ....been battling with This since

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

      you're a lifesaver, thank you

    • @jtlewis81
      @jtlewis81 10 місяців тому

      Yeah, I just ran into this and came to the comments looing for help. thank you! As much as I love synty assets, the characters do not usually play nice with animation stuff.

    • @thomascircle245
      @thomascircle245 Місяць тому

      What do you mean by "onto the character"? The parent game object? Because that is what is a direct child of, and what holds the animator.

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

    If anyone's simple Aiming ik is not working properly than u should bring the root (bone structure of the character ) at the same level in the hierarchy. I wasted 2 hours solving my buggy ik >﹏<

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

      THX man!!! You solved my problem

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

      can you please explain? I am having an issue and do not know by where in the hierarchy you mean for the root to be.

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

      @@tacticalmythic7945 root bone and the rig of the character should be at the same level of depth in the hierarchy i.e. if the characters root bone is a child of a parent gameobject then the rig should also be a child of that parent gameobject. Rig cannot be a child of a child of parent gameobject

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

    Can we all please get the full ThirdPersonShooter code from this video, because a lot of the code is now changed from the previous tutorial

  • @eliaspiersig9994
    @eliaspiersig9994 2 роки тому +13

    Could you please also make tutorials for a First Person Shooter? That would be great!

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

      Yup that's a topic I'd like to cover some more, I've only made one or two FPS tutorials so far

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

      @@CodeMonkeyUnity that sounds amazing! I’m looking forward to it.

  • @Bartek-6772
    @Bartek-6772 2 роки тому +6

    Nice video! Could you also make tutorial for this system with multiple weapons? I think it will be very good!

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

    Sir Plz do a tutorial on Sword and Mele Combat...Thanks

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

    Where did you get these awesome character locomotion animations?

  • @tacticalmythic7945
    @tacticalmythic7945 Рік тому +3

    great tutorial like always code monkey. Took a bit of a break (1 1/2 ish years ) from unity (working in Unreal engine for a bit), also starting College at University of Nevada, Las Vegas (UNLV) [Getting my degree in Computer Science]!

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

    Great work!! Quick question, the code in this doesn’t line up with the code in the other video. I was wondering what video you have that goes through the shooting timing and such that lines up with the code used in this video? I have your coarse and looked through that but didn’t find the reference.

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

    video was posted 40s ago and there's already comment

  • @julezgg5974
    @julezgg5974 11 місяців тому +1

    As soon I use the Multi-Aim Constraint my "Root Transform Rotation" Offset of 30° in the Pistol Idle Animation Settings (to correct the animation direction) is not working anymore and my character is rotation 30° to the left (offtarget) again. Any Ideas? (I am using Mixamo "Pistol Idle" Animation)

    • @julezgg5974
      @julezgg5974 11 місяців тому

      took another Animation which doesn't require Root Transform Rotation Offset to progress. But still want to know how to this kind of problem. Any Suggestion?

    • @TheKr0ckeR
      @TheKr0ckeR 6 місяців тому

      Same here, any solution to that? @@julezgg5974

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

    Hey do you have a link to the new code you added to the thirdperson shooter controller? Its alot different from the first video with new methods 11:41

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

      I just refactored it to match my coding style. I don't remember if the downloadable project files for the third person shooter already have that refactor, if not then the Ladder video should have it unitycodemonkey.com/video.php?v=44qVzrdvm04

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

      @@CodeMonkeyUnity thanks

  • @SCOTTINPYOHONG
    @SCOTTINPYOHONG 21 день тому

    When using Animation Rigging, perfect aiming cannot be implemented because aiming is based on the hand bone rather than the weapon's muzzle!!!

  • @Nick-te6pz
    @Nick-te6pz 2 роки тому +1

    its not working nothing is happening

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

      You need to identify exactly what is not happening unitycodemonkey.com/video.php?v=KtY_5pDhqYY
      Maybe you didn't add the Rig, maybe you didn't add the constraint, maybe it's something completely different.
      Did you watch the Animation Rigging basics video? unitycodemonkey.com/video.php?v=LEwYmFT3xDk

  • @王一次缘结一次绳
    @王一次缘结一次绳 6 місяців тому

    There is only one rig in rig builder's rig layers?I put two rig in rig layers,there are two player's animation states, then there was an error : System.InvalidOperationException: The TransformStreamHandle cannot be resolved.This Exception was thrown from a job compiled with Burst, which has limited exception support.

  • @thomascircle245
    @thomascircle245 2 місяці тому

    4:44 Works sort of but the hand/cube child rotate awkwardly on the start so they no longer look like they're connecting to the target. Might this be an effect of using a different animation?
    EDIT: Figured out the issue. It was that my model's hand local wasn't the same so I had to set
    its aim axis to -Y and its Up Axis to -X.

  • @vi4dofficial
    @vi4dofficial 6 місяців тому

    Could not resolve 'PlayerArmature/Rig 1/AimObj' because it is not a child Transform in the Animator hierarchy.

  • @thomascircle245
    @thomascircle245 2 місяці тому

    5:24 Problem, and it's a bizarre one: The transformation gizmo is not snapping to the spine when I select it. Instead it stays on/snaps to the right hand again. Any idea why it would do this, and how do get around it?
    EDIT: Deleting that cube object that was a child of the right hand seemed to fix it.

  • @ArslanAhmed-f4d
    @ArslanAhmed-f4d 8 місяців тому +1

    hey bro please dont stop making videos like brackeys you are simply amazing

  • @thomascircle245
    @thomascircle245 Місяць тому

    Can you please explain how to get out of this constraint system smoothly to play eject and reload animations that line up correctly with the weapon? I've had trouble reconciling those, knowing what order to disable and play animations, whether to use animation or another constraint to grab the magazine, etc.

  • @fongaming101
    @fongaming101 5 місяців тому

    I wanna do the same with the gamepad rightstick but seems buggy, can you do a tutorial for similar scenario but with a Gamepad??

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

    We need more of these tutorials CodeMonkey! 3D FPS Zombie Style 😎

  • @King.K.O
    @King.K.O 2 роки тому +1

    Finally a well known developer youtuber made this.. been watching smaller youtubers tutorials and they out dated and were in a very low quality 😩

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

    Sir could you please make a tutorial based on auto aiming like in multiplayer games like pubg ,free fire

  • @ArtyomBlin7595
    @ArtyomBlin7595 11 місяців тому

    is this project uploaded anywhere ? The code is different from previosu tutorial.

  • @Edraptor
    @Edraptor 5 місяців тому

    If you're getting errors , make sure the weapon doesn't have any children

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

    Huh, 2 days ago. What a coincidence.
    I am not making any 3D game right now, but it came to my mind to just search for upper body IK so in case I want to do an fps boss fight in later, I know what I'm... aiming to work with.
    Thanks for this.

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

    I love your every tutorials video 😍

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

    Amazing! 🙏 Just one thing. Would it be too much to ask you to change your VS theme to dark mode? Unity is fine-(ish) but the VS editor is SO WHITE the photons destroy ones eyes 👀

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

    Don't forget to attach the Rig to the aimRig in the inspector.

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

    The rigs structure dont work in case when ur using 3d starter pack of unity

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

    Türkçe altyazıyı koyan kişinin eline sağlık ö-ö-ö-ö-ö-ö-ö-ö-öptüm bayy, gö-gö-gö-gö-gö-gö-gö-gö-gömmdüm say

  • @sejangamer
    @sejangamer 3 місяці тому +1

    How did you make these ammos and glowing ammos 😢😢

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 місяці тому +1

      Glow is just bloom, on both the bullet and the TrailRenderer ua-cam.com/video/bkPe1hxOmbI/v-deo.html

    • @sejangamer
      @sejangamer 3 місяці тому +1

      @@CodeMonkeyUnity thanks for the Reply 💗❤️❤️❤️💗
      Q.1
      but i want to ask you that how did you make this muzzle flash effect and how can i make realistic one (not like this one but other ) because when i use point light it just shows on the walls and ground like surfaces there is not any visual light comming out of the gun like muzzle flash
      Q.2
      How can i get a job in gameDev even small job (with 50$ salary ) because here in india especially in my city there are literally no jobs for GameDevlopers
      And i am ready for internship too if there are any
      So if you know someone just let me no if they hire me i would love to in a Remote Job online
      Im very good at c# Game Programming in 3D Games Unity
      Please let me Know if you Know Someone ❤️💗💗💗💗❤️❤️
      By the way love your Videos 💗💗💗❤️❤️💗❤️💗❤️💗❤️

    • @sejangamer
      @sejangamer 3 місяці тому +1

      @@CodeMonkeyUnity i want to know that how can i make my game playable multiplayer offline using wifi hotspot like Mini miltia (but now this game is online ) game and
      Local Warfare Portable game

  • @1ks_CS2
    @1ks_CS2 4 місяці тому

    ty the best tutorial ever
    all is working

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

    Where you get the rifle animation like rifle walk and rifle run and the rifle idle ?

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

      One good place to get free animations is mixamo unitycodemonkey.com/video.php?v=c4jtyDA7vcs

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

    hi your videos are really helpful and help me a lot for my university assignment . However I'm still struggling on weapon pick up and changing weapon ,it would help a lot if you could do a videos on that ..... But even that you helped me sooo much . Thank you , Awesome content and easy to follow as well

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

      The basics would be just a simple weapon pickup with a trigger collider to see when the player touches it ua-cam.com/video/Bc9lmHjqLZc/v-deo.html
      Beyond that it really depends on how you implement it, you would need some script to manage switching weapons and keeping track of the active one. Then also change the visual which would possibly also require changing the IK rig (rifle requires two hands, pistol just one)

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

    Thanks man, this is such a useful tutorial! And so on-point. I was having such a hard time getting the animation rigging package to work, since months. You my friend are a Godsend. Thank you so much for this!

  • @Dominik-K
    @Dominik-K 2 роки тому +2

    Thanks for this tutorial, Unity really has a lot of amazing functionality already built-in

  • @ASDER-qs6yn
    @ASDER-qs6yn 2 роки тому +1

    Están muy buenos los gráficos. Lo digo enserio. No sé porque no hacen más juegos así. Podrían meter más cosas si dejan modelos de bajos polígonos.

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

    wouldn't it break(not work as intended) when the player moves close to a wall or object?

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

      Check your raycast distance and if you are too close, don't aim.

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

      It would look a bit odd but easily solved by just checking distance to the wall, if too close then just disable the rig

  • @Br0cc0li210
    @Br0cc0li210 Місяць тому

    You can just move the spine

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

    Hello i am doing the exact same steps as the video but it keeps giving me erorrs saying this:
    Could not resolve 'Player/Rig 1/BodyAim' because it is not a child Transform in the Animator hierarchy.
    i would really appreciate some help thanks

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

    CodeMonkey pls help me good sir. When i click aim my character's hands are in perfect position holding the AR but when he is in idle position (not aiming), both hands are messed up and in the wrong place. How can i fix this?? Btw love your videos they've taught me so much!!

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

      When Idle the animation rigging should not the active, you should disable the rig. If the hands are in the wrong position with the rig disabled then that just means the animation you're using is somehow broken
      Either that or you're using animator layers and don't have the idle animation player on the hands layer

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

    Your tutorials are so different bro! Always learn something new, even if I know some of it. Thanks

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

    could you do a video on a third person camera using cinemachine

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

      The basis for this character is from the free starter assets, you can look at that to see how the camera works ua-cam.com/video/jXz5b_9z0Bc/v-deo.html

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

    Thank you very much

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

    3:54 what if my downloaded rig have wrong direction? hand look at not to Z, but z+y (under 45 deg)

  • @AlexCyber-t8m
    @AlexCyber-t8m 9 місяців тому

    I want to learn to make my character shoot like yours. How do we do that? I've followed all videos related to 3rd person shooters but there isn't one with how you put the audio, the shooter effect such muzzle and the projectile

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

      I covered the projectile in the Third Person shooter video unitycodemonkey.com/video.php?v=FbM4CkqtOuA
      The particles, you spawn them on the same place as the bullet
      The audio, you just spawn an audio clip unitycodemonkey.com/video.php?v=QL29aTa7J5Q

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

    Can you maybe upload this project? I can't have the animation rigging set up nicely... it is so broken for me and I can't find any solution, having access to this will help me so much

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

    Can you create a package from this project? with no-copyright humanoid models

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

    Loved the tutorial! how do you get the projectile/bullet to look like that exactly? trying to make it in my game so that it looks like theres "tracer" fire from projectiles :)

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

      The visual is mainly just a TrailRenderer with some nice glow ua-cam.com/video/bkPe1hxOmbI/v-deo.html
      For the movement, the character does a raycast to find where the bullet will hit, then spawns the bullet object on the shoot position and that object (which has the trail) simply moves towards the target and destroys itself. No physics used in the bullet itself

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

      @@CodeMonkeyUnity Ohhhh!!! thank you so much! slowly getting there c: your videos are a big help!

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

    As of today I have bought all your courses 😊😊 keep sharing.. I like your tuts, they are really good and with lot of things to learn..

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

      Thanks! I really hope you like them! Feel free to post any questions in the Q&A section!

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

    Thank you for your work on this series of videos covering the different aspects of a third person shooter. I think what is missing from this series is how to handle strafing animations while aiming. Currently, the character's walking animations aren't realistic while aiming, with a sort of floating, moonwalking effect while aiming, the foot placement not consistent with the character's movement.

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

    Hi. Your videos are amazing. How i can make one aim assist for third person shooter mobile? Have seme video about this?

  • @walkingdead8331
    @walkingdead8331 2 місяці тому

    Hi if possible can you tell me about animtion asset you used for shooting

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 місяці тому

      It's from this pack assetstore.unity.com/packages/3d/animations/rifle-pro-mocap-animation-pack-46160?aid=1101l96nj

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

    Great tutorial, thankyou. Issue I had is my guy holds his gun side on, applying a 45deg offset on the spines Y axis fixed that for me.

  • @ChanzOntop
    @ChanzOntop 10 місяців тому

    I just cant understand how u active that u can see what In game looks like while editing. I wish u could say it in the video

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  10 місяців тому

      How I what? How I test the animation while editing? You need to enable preview mode, I talked about that in the animation rigging video unitycodemonkey.com/video.php?v=LEwYmFT3xDk

  • @HotSun-l4h
    @HotSun-l4h Рік тому

    Thank a lot. But if i want to change the targetPositionWeight in my script. How can i do it?

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

    Hello code monkey i have one question. How camera shake beautifully can you make the video on this topic.
    Thanks

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

    Don't make the bullet trails so orange!! Feels weird. Make it bright yellow pls

  • @makasin2393
    @makasin2393 5 місяців тому

    U so good, thanks u bro

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

    I'm thinking about making all sorts of action games where this can come in handy😊🎉

  • @ilias-tompoulidis
    @ilias-tompoulidis Рік тому

    But how do you know that the hand points exactly where the tip of the gun points?

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

    What if you want to pick up the weapons though. I started working on something like that, but with hand placement. It didnt worked well. This video makes me wanna go back to it

  • @1404alexandre
    @1404alexandre 2 роки тому

    I was also exactly having the sa expressions LMFAO

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

    Tell us how it been!!

  • @danielr213
    @danielr213 3 місяці тому

    One of the more confusing tutorials I have seen on this topic, although in general I really like Codemonkey's tutorials. I have followed the third person shooter controller tutorial diligently, but there is a huge gap on where that left off and where this starts. We didn't have a weapon there, and the character is just swinging their arms around when walking. I do not understand at all where this vid is supposed to start - what animations need to be in place? From where? It is definetly not the free unity 3rd person controller neither the pistol idle animation we downloaded in the previous one.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 місяці тому

      The weapon is just a mesh placed on the child of the hand bone, that's it
      Not sure what you mean by "swinging their arms around when walking", that's just the walk animation?
      You use whatever animations you want, if you want a pistol animation then use that same pistol animation, if you want a rifle animation then you need a rifle animation. There's tons of animation packs on the asset store, or alternatively look for some free ones on Mixamo.

    • @danielr213
      @danielr213 3 місяці тому

      @@CodeMonkeyUnity thanks man! what I meant is the previous video of the series finished with a different character model, that is in a different default pose, has different animation set, and is without a weapon - I tried adding a weapon as a child and rotate it around, but the robot had a V shape at the start, and also the gun never got a blue bone rig like in yours - and in idle state behaved differently too as the animations I found online were different. And as a beginner this made me look for a different tutorial altogether, as I couldn't recreate your starting state in like 2.5 hours. This also included quite some time until I figured out that I need to configure the imported aim animation to have rotation Original and baked into the pose. I always found your tutorials easy to follow, so thats why I mention it here! have a great day!

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

    Is there anyway to chat with in discord I need advice I don’t want to be viral

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

    going well. For so reason tNice tutorials video struck as really concise and really cleared up so questions I had. The DAW I used back in

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

    Please make one tutorial on full body fps.. Using Animation rigging package, how head stablize with mouse movement

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

    Can you please make a video teaching us how we can make wall running for third person

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

    How did you do the cinemachine impulse please when shooting ?

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

    If I were to be using a weapon system where I switch between a Handgun and a riffle, how could I setup the IK for each and then use

  • @AlexCyber-t8m
    @AlexCyber-t8m 9 місяців тому

    The hand is not following the sphere as instructed

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

      Check your forward axis, maybe your model is rigged in a differnet way

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

    For some reason my vectors on my hand differs from the other one. Basically one direction on my hand converts to a green. They aren't on opposite sides but instead just random. Idk how to explain but it's driving me nuts

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

      Maybe you have a model that was rigged incorrectly, I believe the model I used in the video has the standard rigging but there's no hard rule that says it must be rigged exactly like that, it's up to whoever rigged it

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

      Thank you for your response! I just went by trial and error and tried different values until it worked. It was actually Y + Y for me. Weird (imo) but it was easier when doing the other one cause that one I could figure out. @@CodeMonkeyUnity

  • @FlayA-hn3dr
    @FlayA-hn3dr 3 місяці тому

    Una pregunta la ppse de sostener el arma como se consigue veo q la tiene s desde l inicio

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 місяці тому

      It's simply placed as a child of the hand bone, I set it up in the previous video ua-cam.com/video/FbM4CkqtOuA/v-deo.html

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

    Do you think you can make an Ik tutorial on how to walk up stairs

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

    I finally decided i want to learn how to make games so I found your channel, loved it and watched the entire TOP10 games series plus some more and finding out you were Portuguese made me really proud for some reason. I love when channels I enjoy are from our little country. Congrats on the content.

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

    Hey, i just completed both tutorials and i just got to say it, they were really useful, and everything ended up looking professional. Iused the mouse sphere and it didn't work right (when sudden changes in deepness, the spine IK turned too fast), but i created an gameobject 10 meters on the z axis of the main camera and it worked amazing. And I just lerped to create a smoother movement between the position and the positioni it should aquire when following the gameObject in font of the camera that i created. I am really happy and I hope you keed doing third person shooters. A cover mechanich and simple IA that also uses it and you just got a full game.

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

      I'm glad the videos helped you! Smoothing can definitely help if you're going for a super fast twitch shooter

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

    Could you maybe make a little Tutorial on adding Google account to a Game for e.g. saving Highscores, or even better, a semi-multiplayer high score where the game itself is singleplayer, but the high score of all players could be seen, maybe with firebase? as always, keep up your good work.

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

    Are you using freelook camera for tps view?

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

    TNice tutorials is going in my helpful tutorials playlist.

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

    i have fps hand anim how to combine it with humanoid character

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

    please use dark theme because i hate light theme it burn my eyes

  • @ИльяОблогин-ш3э

    Thank you very much for your videos, I wanted to share that the constraint for the left hand is better set with Chain IK Constraint.

  • @mattwarr7556
    @mattwarr7556 11 місяців тому

    This is probably the best Third Person aiming tutorial available anywhere, either free or paid . BUT, I keep coming across a problem where if an object (ie an enemy) comes between the gun and the camera, my character tried to shoot backwards and everything breaks for a second..... I have seen a very complex solution to the problem, but wondered how you would approach it ....

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  11 місяців тому

      The super simple solution is just add a distance check, if the enemy/target is too close then disable the IK aiming or make the weapon aim straight down. It's up to you if you want to allow the player to shoot when so close or not, some games allow that and some dont

  • @LowResolutionClips
    @LowResolutionClips 3 місяці тому

    in the mouse thing to make the target move with the mouse, you didnt explaine how to do it to work if you aim at the sky

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 місяці тому

      You place an invisible collider in the sky and it will hit that collider, I covered that in the third person shooter video before this one ua-cam.com/video/FbM4CkqtOuA/v-deo.html

    • @LowResolutionClips
      @LowResolutionClips 3 місяці тому

      ​@@CodeMonkeyUnitythank you it was my mistake❤️❤️❤️

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

    Great work I want to make something more like risk of rain 2 where the character can always shoot in third person mode with out aiming for you have a tutorial on that?

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

    Revisado

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

    Yet to watch the video, but the thumbnail of this video and title are way better than your usual go to. The only thing I can suggest is to increase the contrast of the thumbnail and use colors that are like candy to our eyes. Bright but not generic colors, colors like cherry red/lime/hot pink/azure. Also maybe give complimenting colors a try :D

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

    Sorry but i followed you first vid and it was cool and working perfect until i got the error that tells me the avatar is invalid and it doesnt play animations EVEN the ones that doesnt need ik. And my character just freeze on the T-Pose ... HELP ME Please

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

      Sounds like maybe you're using the wrong avatar, you need to use the exact same one generated for that mesh, different meshes use different avatars unitycodemonkey.com/video.php?v=AO1vw-b8Qzw

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

    I followed your video, it works fine except when I am close to wall, how can I fix it?

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

      Calculate the distance towards the wall, if too close either ignore it or aim the weapon up/down

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

      @@CodeMonkeyUnity if you could do a short video it would be so much help!

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

    I'm sure ill find an answer, but how did you add a bone structure to you gun like that?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 місяців тому +1

      The gun doesn't have bones, the bones are on the characters hands, the gun is simply a child of the hand bone

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

      @@CodeMonkeyUnity Thank You

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

    is there any chance getting project files?

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

    Maybe I was too dumb to understand, but one of my characters doesn't have a weapon (he uses his mouth to pull objects towards his mouth) and the other character has like a slingshot attached to it's arm (They're not human shaped, they're more like live toy dolls). If it's the mouth one can I skip the first weaponAim step and go to the body Aim one without trouble, also I don't have a physical target object since my aim is working with raycasts
    Plus: what's the Rig object you have on the start of the tutorial I pressume is from another video, do I need to do everything from that video or is just adding a component and that's it?

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

      The Rig object is from Unity's Animation Rigging unitycodemonkey.com/video.php?v=LEwYmFT3xDk
      It has tons of constraint types, you just have to choose the right one depending on how your non-humanoid characters are set up