YOU ARE MY SAVOUR!!!, I have spent literally 3 hours watching videos trying to figure out why my character kept rotating in a circle when I strafe left and right, and no one has mentioned the world space button except you, thank you so much. 3 hours just to figure out I needed to press one button lol :)
@Darkknife014 жыл бұрын
I found several youtubers who when creating third person movement or controllers went over world space. Brackeys, Samyam etc. Maybe not when going over animation however
@ДиманЧоус2 жыл бұрын
Bro this channel is such a treasure. Thanks man! The best tutorials on the internet
@cozziee923 жыл бұрын
I am just starting my unity journey after years of mobile app development and your videos have been a blessing. Please don't stop, ever. God bless you.
@killervoid63524 жыл бұрын
this is the only third person shooter tutorial that goes into the animator, fantastic work you earned my sub lol.
@TheKiwiCoder4 жыл бұрын
Thank you!
@wilwatts62982 жыл бұрын
Thanks a lot I've watched too many videos on this subject and they NEVER mention that you have to write a script to control the animations. Keep up the good work and continue include all of the details when teaching others.
@Владислав-б6г1г4 жыл бұрын
2 недели искал подобную реализацию движения персонажа, и вот наконец то наткнулся на твой гайд! Ты лучший!!! Hi from Russia! ;)
@TheKiwiCoder4 жыл бұрын
Thank you! Good luck :)
@TwistedSisler4 жыл бұрын
Just some input. I've found that using a Character Controller feels better than using a rigidbody and collider. You don't get caught on the environment and it feels way smoother. You just have to script your own gravity, but that is really easy to do.
@TheKiwiCoder4 жыл бұрын
My later video converts from a rigid body to a CC, I agree it can be a lot smoother.
@barkmober2 жыл бұрын
@@TheKiwiCoder would it be possible for you to provide the source code?
@naishtech81322 жыл бұрын
2:18 - Camera Setup 2:48 - Character Physics 3:14 - Animation Controller 7:06 - Character Locomotion Script 8:26 - Character Rotation Script 11:17 - Fine Tuning
@frosty76522 жыл бұрын
ty
@upsurge55413 жыл бұрын
Man i've been trying to make my player look at the camera for 5 days now everytime i did it it caused the player to stutter alot u just fixed it for me THANK YOU BROTHER
@NowWeWake4 жыл бұрын
Hi KiwiCoder! Really enjoying this tutorial series. Thank you so much for making it. Quick note: If you don't set the X-damping to 0 in Cinemachine (which you do), the character will always strafe at a slight angle. The damping causes the camera to lag behind the player, then rotate to follow it slightly, which causes the player to turn slightly; hence the angled strafing. Man, this took me ages ;)
@TheKiwiCoder4 жыл бұрын
Ah thanks for finding that. I’ve yet to try out the 3rd person aim component as it wasn’t available when I created this video. Check here for more details:blogs.unity3d.com/2020/05/22/cinemachine-2-6-brings-you-precision-improved-workflow-and-little-bits-of-magic/
@davidribeiro47814 жыл бұрын
Keep going. Great work with this. Excellent sense of what questions arise along the way and direct and educational instructions.
@TheKiwiCoder4 жыл бұрын
Thank you 🙏 More videos on their way ✌️
@timithius788511 ай бұрын
Exactly what I'm looking for, and Synty even! Thanks fellow Kiwi!
@Bryan-bh7cy3 жыл бұрын
dude your series is a gem
@TheKiwiCoder3 жыл бұрын
Thank you for watching!
@WizBricks4 жыл бұрын
Thank you for this video! I've been looking for something like this on and off forever. Nobody had an answer on how to this with cinemachine.
@TheKiwiCoder4 жыл бұрын
I was in the same boat! That's what lead me to create this video
@thecreativity57934 жыл бұрын
Closing inspector tab for lag just saved me !
@TheKiwiCoder4 жыл бұрын
It's one of those gotchas of using Unity. I've found collapsing components in the inspectore will also improve performance, and only expand the component you're working on. Also collapsing sections within a component can help.
@neenaw3 жыл бұрын
I too was trying to create strafing using mixamo animations. The issue is their backwards strafe animations don't blend with sideways strafing. I got to that point and remembered this exact video.
@TheKiwiCoder3 жыл бұрын
Nice!
@xaviergordon13434 жыл бұрын
Really In depth brilliant tutorial
@aryangovil2654 жыл бұрын
If anyone's character is stationary in position try changing, the rig to humanoid and ticking the green buttons present in the animation tab (note the green buttons will only be displayed when rig is changed) hope this helps someone
@aryangovil2654 жыл бұрын
Thnx
@remcrap11394 жыл бұрын
How i dont see anything unity 2020
@aryangovil2654 жыл бұрын
@@remcrap1139As this is a fix for 2019 version
@remcrap11394 жыл бұрын
@@aryangovil265 no bother i didnt attach the scripts
@juanp44462 жыл бұрын
just fantastic, seriously these tutorials give me life bro :D
@siddharth6173 жыл бұрын
Really Enjoy your Tutorials! I've been struggling to grasp the concept of third-person systems...you just made them as simple as you make it sound! Great Work bro! Keep it up! : )
@TheKiwiCoder3 жыл бұрын
Thank you!
@DaveEsimen4 жыл бұрын
Amazing tutorial. So much content in such fast video. Liked and subbed. I'm gonna watch all your videos.
@TheKiwiCoder4 жыл бұрын
Thanks very much!
@game__me__me87954 жыл бұрын
Your tutorials are great. Please make more videos about third person shooters.
@jaehoopark81064 жыл бұрын
You're amazing. This is exactly what I like to learn. Please more tutorials about TPS.
@raiskhan204 жыл бұрын
Liked, subscribed and also added to my library list😁
@TheKiwiCoder4 жыл бұрын
Cheers!
@marcodoesitbetter86754 жыл бұрын
WoW! amazing video ! Keep it coming bro ! :D
@adeveloper71844 жыл бұрын
Cool! Previous shooting video has gun, i though this one gonna be about shooting machnim with all the IK and all ;) well hope those video gonna come out soon,
@TheKiwiCoder4 жыл бұрын
That will be coming soon! I really wanted to get this out first though, and then build the aiming system on top of this character controller.
@adeveloper71844 жыл бұрын
@@TheKiwiCoder well! Coding third person shooter with all the functionality can be really painful, although there are so many visual scripting tools, but your tutorial on this is by far the unique and the easiest. Hope you cover all, like a complete game. We can wait ;) no issue. But don't make us wait like other KZbinrs do :( best of luck with the youtube channel man! Hope to see the awesome running animations too
@thecreativity57934 жыл бұрын
This would be great!
@billy_avila4 жыл бұрын
If your Character isn't moving properly, make sure you've deleted the movement script from the previous video. The only script that should be on your character by about the 8 minute mark is Character Locomotion.
@aldifahluzi69983 жыл бұрын
my character still doesnt move, i dont understand why:(
@aleqkzander Жыл бұрын
Good job - tutorial brought to the point :)
@greendino58682 жыл бұрын
my character keep returning/resetting position when backward
@MystMagie3 жыл бұрын
How would you approach it if you wanted to have : - Free camera moving around the player when player is Idle - Player moving in direction of the Camera when player is waking/running. When player press right or left, character goes right or left (not strafing) - Strafe movement and zoom when aiming (right click) Basically thats the standard type of moment for any Third person game, like Uncharted, Assasin s Creed etc However i cant find any tutorial about it
@TheKiwiCoder3 жыл бұрын
Create a transition from this blend tree to a 1dimensional blend tree for the not aiming state (checkout my ai series for that blend tree). Rotate the character with the keyboard input instead of the mouse when in the not aiming state. Idle is the same as the not aiming state (I think)
@ohalohuntero4 жыл бұрын
Awesome stuff dude thanks for the video!
@cengizgorencom42514 жыл бұрын
YOURE THE BEST !!! I LOVE YOU
@dumitrudragomir57033 жыл бұрын
Hi, if you re too lazy to write here is the script for CharacterAiming using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterAiming : MonoBehaviour { public float turnSpeed = 15; Camera mainCamera; // Start is called before the first frame update void Start() { mainCamera = Camera.main; Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; } // Update is called once per frame void FixedUpdate() { float yawCamera = mainCamera.transform.rotation.eulerAngles.y; transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0, yawCamera, 0), turnSpeed * Time.fixedDeltaTime); } }
@amanvahora4953 жыл бұрын
5HABJ YOUUU
@keagancarson63713 жыл бұрын
I guess I am pretty randomly asking but does anybody know of a good site to stream newly released tv shows online?
@marcusbeckham37443 жыл бұрын
@Keagan Carson lately I have been using flixzone. You can find it on google :)
@aressantino23823 жыл бұрын
@Marcus Beckham Yup, been using FlixZone for since april myself :D
@keagancarson63713 жыл бұрын
@Marcus Beckham thanks, signed up and it seems like they got a lot of movies there :) Appreciate it!
@BRIANROSER25 күн бұрын
My "aim up" stops at the center. There must be something I did wrong but I followed every step. The Y axis movement just stops at a certain point while Im still aiming towards the ground. When I move it completey down the camera is above the player and points downwards....
@thelostgrimm2 жыл бұрын
Awesome Video man. I'm having an issue though. I'm very new to this. everything is all set except my character won't walk. not sure how to set WASD for walking.
@kurviern2 жыл бұрын
Hi, have you solved your problem?I can not
@thelostgrimm2 жыл бұрын
@@kurviern no man, sorry. i remember this video is kinda old and an older version of Unity. I didn't know where to look. Sadly no one felt like helping
@juansalvatore74502 жыл бұрын
For it to work in the current Unity version (2021.3.0f1) I had to declare the method FixedUpdate instead of camel case (fixedUpdate) like in the video
@hadieini4 жыл бұрын
Super COOL!
@nobody9714 жыл бұрын
Hey! Great tutorials. Though, I followed this very slowly and somehow got an error for the CharacterAiming script. It said the "float yawCamera = mainCamera.transform.rotation.eulerAngles.y; " line had an issue. The script is assigned to my character model btw! Here is the error: NullReferenceException: Object reference not set to an instance of an object CharacterAiming.FixedUpdate () (at Assets/Scripts/CharacterAiming.cs:20) Thanks for the series of tutorials, it helps a lot with learning animation in Unity!
@nobody9714 жыл бұрын
I fixed the issue... I am not entirely sure of the issue itself, and why in the video it worked (and not for myself). My theory is the update I may have been using might've rejected the code. Anyways, in the start(), DONT repeat mainCamera = Camera.main... There is no point. It essentially detached the camera, so it's counterproductive. My CharacterAiming script! ALSO, I have made the camera public, so don't forget to link in the inspector... hatebin.com/gndzdljapq
@Bob-king044 жыл бұрын
@@nobody971 HEY MEN I HAVE SAME ISSUE ... AND MY PLAYER MOVE IN PLACE . YOU HAVE IDIA HOW TO FIX ?
@adamgiuffrida39723 жыл бұрын
@Christian Alp dude I was losing my mind thank the lord he had the answer lmao
@markegan25702 жыл бұрын
@@nobody971 Thanx! Works
@phantom5229 Жыл бұрын
@@nobody971 👍
@kieranraquel29494 жыл бұрын
Hey! TheKiwiCoder, I followed your tutorial but I am stuck where the character stays in place when I put in the character_aim script and doesn't move anywhere, any ideas? Btw, Great Tutorial.
@marantino14 жыл бұрын
In the inspector of the character (SM_Character_Male_01) in the Animator component turn Apply Root Motion toggle on. That fixed it for me.
@muhammadumairmumtaz69934 жыл бұрын
i have a question , when i use this for mobile and i have button which i press the camera starts rotating towards button direction.kindly help me.
@elsyndur44154 жыл бұрын
How do I upgrade Cinemachine? My version of it doesn't have the Camera Offset extension, and it's no longer available on the asset store.
@TheKiwiCoder4 жыл бұрын
Use package manager to upgrade. Everything has moved from the asset store there.
@elsyndur44154 жыл бұрын
@@TheKiwiCoder Ah. Found it. Thank you.
@nikshepamin85704 жыл бұрын
Really Cool Tutorial. I Want My Character To Run When I Hold Shift Button Please Make A Tutorial On It. It Will Be Much Helpful For Lot Of Developers. :)
@dumbguy10734 жыл бұрын
he already said that in 1st tutorial
@SHOST014 жыл бұрын
When you strafe from left to right quickly the character will snap to the next animation. Is there any way to make this transition smoother?
@TheKiwiCoder4 жыл бұрын
Good point. I think what is happening is the input is snapping from left to right as the direction is changed.
@SHOST014 жыл бұрын
Do you know of any way to make it smoothly go into the next animation when the direction is changed instead of snapping to it?
@TheKiwiCoder4 жыл бұрын
This page has some more details: answers.unity.com/questions/341962/smooth-transition-for-getaxis-when-pressing-opposi.html
@SHOST014 жыл бұрын
@@TheKiwiCoder You. Are. AWESOME! This helped fix it. I have been looking everywhere for some way to fix this. Thank you!
@raveheart584 жыл бұрын
Jade Clayton 🙌
@reinhardgercken53623 жыл бұрын
Hi, verry helpfull video! I have all your infos (verstanden in german). I will look to your other videos (great work!)
@itsWorm Жыл бұрын
How do we get the feet to move in when the player turns in place?
@foncode10111 ай бұрын
my reticle is off when i move to the left due to the animation. cant figure it out but trying..
@fred154110 ай бұрын
I am always confused by the situation when a 3d player can't rotate, but he can walk right or left or forward, back, facing to the enemy, what this term will be? I just find the correct term from your title, strafe motion in blend tree, thanks
@Zukomazi4 жыл бұрын
All the animations from the GitHub have import warnings and dont work?? any tips cant even follow the tutorial now. And I was enjoying it :C
@dkordy3 жыл бұрын
Perfect, thank you very much. Very practical presentation. The music in the background makes the whole exhibition much more pleasant. I am very grateful to you. Essential, enjoyable exposure.The only complaint I have is - when you write a script, the letters are too small and when I expand the screen to full screen it is still very small ... somehow to enlarge while writing the code!? Otherwise, the rest is perfect ... even the voice is pleasant, professorial ... a lot of greetings and thanks for the tutorial.
@faraznawazsandhu2 жыл бұрын
vector 2 doesn't contain a definition for GetAxis , facing this error while writting the scrip.
@thircidia70242 жыл бұрын
Great stuff man.
@marcodoesitbetter86754 жыл бұрын
BTW, could you also make tutorial for Cinemachine sprinting animations blend tree please ? Was trying to mix both locomotion scripts/animations from video 1 and 2 but it doesn't look good tho :P I really like movement style from this video
@TheKiwiCoder4 жыл бұрын
Yep it’s on the list!
@sp0ngebob5614 жыл бұрын
For some reason my character wasnt moving I need help :(
@appleseeds28434 жыл бұрын
Same here
@dcsgamesstudios4 жыл бұрын
Same here
@shankaraviji3 жыл бұрын
You should not leave a space in blend tree parameters. Not Like This 👉(Input X, Input Y), Like This 👉(InputX, InputY)
@kakkakaaew39112 ай бұрын
I follow the step but I can’t move can u tell me why😢 i really need your help
@durgam_sumerian78154 жыл бұрын
What an amazing tutorial, I hope to see a similar one for the oculus rift VR, please.
@diduward93602 жыл бұрын
could you add jumping or did you already add it in a future vid?
@billy_avila4 жыл бұрын
You've got great stuff keep it up
@TheKiwiCoder4 жыл бұрын
Thank you!
@MyMusic-pi6lz2 жыл бұрын
My character takes too much time to face the crosshair while turning ... The turn speed is not affecting anything... Plz help anyone...
@TheKiwiCoder Жыл бұрын
Slow it down
@sshhiittoo24 жыл бұрын
I have set the value to 0 in Damping of all the fields but the camera keeps moving when I move the character, why can it be? Amazing job and amazing tutorials, thank you!
@Mikelica692 жыл бұрын
ur a freaking saviour man!!!
@drr18674 жыл бұрын
Hi - great series. I'm having problems though. My animation is very jerky - ok when not using cinemachineFreeLook but as soon as switch it on very jerky movements. Not sure what I am missing. I'm not using rigid body - I'm using character controller. Many thanks if you can advise me.
@TheKiwiCoder4 жыл бұрын
Jerkiness is usually caused by an update order problem. Hopefully my next video will give you some tips on how to solve this
@drr18674 жыл бұрын
@@TheKiwiCoder ok thanks for the quick reply - I'll press on then with the next one. Brilliant work - I notice your channel views are growing.
@MeatLabGames2 жыл бұрын
Hey hey, just a heads up. Does not work in Unity 2022.1.15 (I assume all unity 2022 currently). Went back own to 2021 and it was fine. The reverse animations just skip. Its hard to explain, but needless to say, I wasted a lot of time combing through this video to spot my mistake. So I can't get access to your Discord, it won't erify my legit UK number. Any chance I could DM you my Discord account and get added. Cheers, James
@TheKiwiCoder2 жыл бұрын
Hmm yeah weirdly it looks like they broke root motion. Fun. The work around for now would be computing your own root motion, or do some filtering inside OnAnimatorMove
@zardify_ Жыл бұрын
@@TheKiwiCoder Something very weird is going on even in 2021.3.22f1. - Forward & Backwards as well as Left & Right work fine. Everything looks GREAT in preview while adjusting the sliders. However, the root motion will not work in-between axes'. I even verified that the run-time parameter values are correct, meaning when they are 0.5 and 0.5, and the character should run forwards and right, the right animation is played, but the root motion just snaps to straight horizontal movement............ It's infuriating. It all works in preview. Anyone have a work around?
@zardify_ Жыл бұрын
Never mind. Sometimes voicing things out is what fixes the issue. I've been stuck on this for days, but turns out the issue was overcomplicated code (...as it usually is...). I was turning the character towards the movement vector as well, which put the animation exactly on the lateral axis........... Very hard to debug.
@omarjomaa58104 жыл бұрын
great tutorial! my animations are moving to the corresponding key pressed correctly, but my character is frozen still for some reason :( any tips?
@TheKiwiCoder4 жыл бұрын
Thanks! It sounds like root motion is missing from your animation clips, or the root motion checkbox on the animator component is not checked. There are also some setting in the clip to specify which game is the root. Good luck!
@omarjomaa58103 жыл бұрын
@@TheKiwiCoder seems like my root motions are missing since it is checked, any alternative solution for this problem? I've been using Maya to create my animations and exporting the Skeleton + Mesh with the animations baked.
@cfactorygames4 жыл бұрын
My character is flicking rotate! I've tried in Update and FixedUpdate
@aryangovil2654 жыл бұрын
@PatronState bro can u help me
@aryangovil2654 жыл бұрын
@PatronState yaa I was trying to use a virtual camera but my player mouse look script wasn't working
@aryangovil2654 жыл бұрын
@PatronState any idea what to do
@BBoysLibya2 жыл бұрын
Really amazing tutorial really fun and easy to follow tho i ve a problem when ever my character rotates it keeps moving in a really jittery motion not as smooth as ur character is their a way i can fix this ??
@XboxPlayerPL3 жыл бұрын
Question. Why does my character input X and Y snaps immediately and animation transition doesn't look smooth? I need to lerp it.
@KenazzYT3 жыл бұрын
If any have trouble with the github assets throwing up hundreds of errors, delete EVERYTHING except the specific strafe animations you need :)
@paulberry33593 жыл бұрын
Hi a bit of a silly question, as I am fairly new to Unity, but was wondering why you do not use the supplied left and backwards animations but instead just reverse the forward and right ones? Many thanks :)
@TheKiwiCoder3 жыл бұрын
That is a good question! I think it blended better..
@paulberry33593 жыл бұрын
@@TheKiwiCoder Thank you so much for replying
@skeleton6493 жыл бұрын
I got a bug in the gravity, it's like Jump, keeps going down slowly
@spideyman19094 жыл бұрын
BEST TUTORIAL
@regioninteractive61144 жыл бұрын
lookin good
@5252emre4 жыл бұрын
my character is floating forwards slowly. i use the charactercontroller with that i have o problems. when i use rigidbody its slide backward and if i set the mass about 5 its slide forwards
@TheKiwiCoder4 жыл бұрын
Hey, there are two sets of characters in the synty assets. Make sure to use the ones in the FixedScaleCharacters folder. Or if you have a custom character make sure scale is set to 1,1,1 on all game objects in the skeleton.
@5252emre4 жыл бұрын
@@TheKiwiCoder thx for fast reply. i checked all scales from character mesh and rigs they are already set to 1,1,1. I using the characetr and animations from mixamo. maybe they are not combatible with animation rigging ? and my idle animation is an pistol idle, may i should take a standard idle animation ?
@danielconde0014 жыл бұрын
im missing the Cinemachine Camera Offset extension. What could be the problem here?
@SamuelPenning3 жыл бұрын
Look under "Add Extension" in the bottom of the CinemachineFreeLook component. It's at 14:43 in the video. Took me a while to figure it out, too.
@zzz-hk9zq2 жыл бұрын
10:48 if anyone is having an error, try changing line 13 and instead of using mainCamera = Camera.main; use mainCamera = GameObject.Find("MainCamera").GetComponent();
@mingbinyang39982 жыл бұрын
if you get this error, check if your main camera has a tag Main Camera
@KaptanAmerikenya2 ай бұрын
@@mingbinyang3998 thx
@andreaswenang51774 жыл бұрын
I have a question, why I can't use 2 cinemachine extensions at the same time? I want to add collision extensions cuz the camera goes through wall
@TheKiwiCoder4 жыл бұрын
It should work?
@andreaswenang51774 жыл бұрын
@@TheKiwiCoder well, it gliched like... yes the camera prevents wall collision a little bit but it still goes through wall
@TheKiwiCoder4 жыл бұрын
Andreas Wenang You could try the unity forum, the guys from cinemachine are pretty responsive there.
@mestesso21743 жыл бұрын
in cinemachine 2.1.10 camera offset addon is not more avaialable... how to solve??
@noahfarnsworth26103 жыл бұрын
I can’t move forward with how u set it up? Only diagonal. Help?
@hcyaan2 жыл бұрын
Hi! Great tutorial! Where can I find the animations pack that you are using?
@danthonyhill99064 жыл бұрын
Hey Kiwi long time, is there a way to use the turning animation so when rotating the camera it uses the Strafe Rapid Turn Left & Turn Right Animation rather than just stand still ??
@TheKiwiCoder4 жыл бұрын
Hey man, good to see you’re still tuned in! You’d need to trigger the animation when the angle distance between the camera and players forward axis raises above a threshold. I haven’t tried that but it’s a start!
@luanius1872 жыл бұрын
@@TheKiwiCoder Can you do a Tutorial on it? Im a beginner.
@yeahido90724 жыл бұрын
Just went through tutorial one for everything to be redone again lol
@x12043 жыл бұрын
hi I am getting an error I don't why : NullReferenceException: Object reference not set to an instance of an object PlayerAim.FixedUpdate () (at Assets/Scripts/NewPlayer/PlayerAim.cs:19) the script is the same as you told my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerAim : MonoBehaviour { public float turnSpeed = 15; Camera mainCamera; void Start() { mainCamera = Camera.main; Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; } void FixedUpdate() { float yawCamera = mainCamera.transform.rotation.eulerAngles.y; transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0, yawCamera, 0), turnSpeed * Time.fixedDeltaTime); } }
@doomslayergaming5203 жыл бұрын
Set the main camera tag as MainCamera. It will work
@luanius1872 жыл бұрын
i have the same problem. did you fix it?
@lemax29804 жыл бұрын
Can you please teach us about procedural animations? Like movement of spider legs on any terrain..would be deeply obliged if you could teach us🙃
@TheKiwiCoder4 жыл бұрын
Hey great suggestion, I'd like to know how to do that also, so I'll see what I can do! The new Unity Animation rigging package sounds like it might be useful for this type of animation.
@lemax29804 жыл бұрын
I've setup the IK but still confused about the code.😅
@lemax29804 жыл бұрын
@@TheKiwiCoder yes sir..there are mutiple ways to approach this.we can set this up using any IK tool and some cool code to shift the position of target point attached to each legs and move them accordingly relative to the main centre of mass. It is a super cool technique and has many applications.I am interested and excited to learn from you🙌🤗
@TheKiwiCoder4 жыл бұрын
@@lemax2980 Cool, thanks for the head start haha. This video is really great and shows the power of procedural animation. Definitely worth checking out! kzbin.info/www/bejne/gX3NhYhmrrCGZpI
@termi28284 жыл бұрын
How does the movement work? We never set up the wasd keys to move the character but somehow it just works? Also what exactly does Input.GetAxis() do in this script?
@TheKiwiCoder4 жыл бұрын
Magic 😂 The horizontal/vertical input axis are mapped to the wasd keys. It’s listed under input in the project preferences.
@termi28284 жыл бұрын
@@TheKiwiCoder ahh i see makes sense now
@pietro84502 жыл бұрын
Nice video! Where am I can find the animations that are you using for locomotion? Thank you!
@SamuelArmer3 жыл бұрын
Help! All my motion configuration settings are correct but when I move the red dot to top right the character runs in a circle Help please :) And when I change the Accel Time and Decel Time to 0.02 the camera just snaps to where it need to be it's not smooth
@shazboi4 жыл бұрын
my cross hair points to the centre of the character's head when I move right, when I move left it stays offset.. how do I fix it?
@branislavzivanovic47754 жыл бұрын
Are you using the old input system or the new input system?
@TheKiwiCoder4 жыл бұрын
Old one.
@sp0ngebob5614 жыл бұрын
Excuse me in your next tutorials do u mind increasing your font size Nice video, I learnt a lot.
@TheKiwiCoder4 жыл бұрын
Thanks for the feedback, sure thing!
@sp0ngebob5614 жыл бұрын
@@TheKiwiCoder thanks for the response my man
@appleseeds28434 жыл бұрын
@TheKiwiCoder Im having some trouble with my character movement. I can move the camera but I cant move the charater. Any advice?
@appleseeds28434 жыл бұрын
And Do you need a controller for this to work??
@TheKiwiCoder4 жыл бұрын
No this video uses a rigid body.
@haithammahmoud68254 жыл бұрын
sry for ask but can u add camera collision .. so when there's something between player and camera
@TheKiwiCoder4 жыл бұрын
Checkout this page. docs.unity3d.com/Packages/com.unity.cinemachine@2.1/api/Cinemachine.CinemachineCollider.html
@creasu1244 жыл бұрын
I think this easily can be done with a raycast starting from the head + a little distance that it’s not going inside the head to the position of the camera when hitting nothing and if it hit’s something the hit position is the new camera position
@theVSORIGINALs4 жыл бұрын
can i use this starter pack for commercial use i m making game and deciding to publish it on play store
@TheKiwiCoder4 жыл бұрын
Check the license on the asset store.
@theVSORIGINALs4 жыл бұрын
@@TheKiwiCoder the license is extension asset so can i use it or not
@aetherproject92744 жыл бұрын
@@theVSORIGINALs like he said READ in the assetstore
@brandongrill51323 жыл бұрын
Why are my camera and mouse inputs inverted? Ie. When i look up th camera looks down.. *all the code is the exact same so idk if it has something to do with the input variables or what?
@ethanjones56233 жыл бұрын
Check the invert properties on the cinemachine camera, almost always have to switch them.
@justinwang28823 жыл бұрын
is there any way to increase how fast or slow the character move?
@nastyaromanova59024 жыл бұрын
Hey there :) I have an issue with this character controller and "combining" the animation rigging of the water gun from the previous video. Everything works fine, moving and all the topics that are covered in this video - until I start constraining the hands to the weapon. In game mode, my character starts floating high above the ground and in scene view I've noticed that my character has left his collider?! (the collider stands neatly on the ground...) Any idea? I noticed that all of my used animations are "read only", could this be an issue? Thanks in advance! (sorry for my english)
@TheKiwiCoder4 жыл бұрын
Oh someone else was having this issue, it sounded like it was something to do with exporting from blender. What character are you using?
@nastyaromanova59024 жыл бұрын
@@TheKiwiCoder yep, again, many thanks. Blender import was the issue. EDIT for further clarification: I had to change the scaling to "FBX All" in the blender export settings and reimport the model to Unity.
@AmgedAlfakih4 жыл бұрын
thank you so much man
@misc-i6q4 жыл бұрын
How do I change the character to my own character I made
@quentin66873 жыл бұрын
Hi ! Thanks for your tutorial ! It's really helpful ! How can I use a mixamo character with animation of the standard assets package ?
@SlitheryEnd033 жыл бұрын
Please help I don’t know what I’m doing wrong i followed everything but the script aiming doesn’t seem to work
@SlitheryEnd033 жыл бұрын
this is the error i keep getting NullReferenceException: Object reference not set to an instance of an object characterAiming.FixedUpdate () (at Assets/Scripts/characterAiming.cs:19)
@teo28053 жыл бұрын
Incredible video! Wow...! One thing I'd like to do is for the player to only Strafe when pressing down a button, and otherwise, the player would just move and turn towards the sides when not pressed. Any leads? Thanks!
@TheKiwiCoder3 жыл бұрын
Hey yeah there is a line in the aiming code which rotates the player. Close that in an if block instead and check if the key is pressed
@luanius1872 жыл бұрын
How to fix this Bug: NullReferenceException: Object reference not set to an instance of an object CharacterAiming.FixedUpdate () (at Assets/CharacterAiming.cs:19) The Character isn't rotating with the camera