Build a Foot IK System from Scratch for Unity (C#)

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 222

  • @Filmstorm
    @Filmstorm  5 лет назад +24

    Thanks for watching - if your system isn't working there is a QUICK FIX --- I missed a crucial step, in the Animator you need to have your layer setup with IK Pass enabled. Here is a screenshot for what needs enabling: imgur.com/a/5Qk49YC

    • @bobbyneal2498
      @bobbyneal2498 5 лет назад

      Hey quick question. I have my own character controller script ( haven't use yours yet), and looking at this and want to implement this to my script. Will this work on my character controller script?

    • @pauliuso
      @pauliuso 3 года назад +1

      Well, you missed another crucial step, showing how you set up an animator.

    • @AshfleetModerator
      @AshfleetModerator 9 месяцев назад

      I can't download the project

  • @samuelromero9377
    @samuelromero9377 5 лет назад +42

    More unity tutorials please, you're amazing!

    • @Filmstorm
      @Filmstorm  5 лет назад +6

      Sure thing Samuel! Really pushing a proper schedule to keep the videos rolling out

  • @spacemandan01
    @spacemandan01 3 года назад +2

    You changed my life. I'll have your babies. No but seriously, I can't thank you enough. I've been searching the internet for two full days for systems that do exactly this but work. I wish I'd know about the IK pass after the animation pass. You can use this for just about anything... catching a ball, cartwheel... you name it.
    Thanks my friend.

  • @MikeTheAnomaly
    @MikeTheAnomaly 5 лет назад +16

    very well done learned a lot, though it would be nice to get a visual representation of how the IK system works, before jumping right into the code.

  • @alexv9607
    @alexv9607 4 года назад +15

    I can't download the project i click on the link but the page is missing and in which tutorial did you make the Movement input script?

  • @peterhuijsen
    @peterhuijsen 4 года назад +22

    Could you explain more about your code when you're writing it? It would really help. Otherwise great tutorial!

  • @nielsvdmarel
    @nielsvdmarel 5 лет назад +4

    Dude this is awesome! didn't expect the video to be released so soon! thank you FilmStorm!

    • @Filmstorm
      @Filmstorm  5 лет назад +1

      No problems Niels! Hope you enjoyed it!

  • @fahmyeldeeb
    @fahmyeldeeb 3 года назад +5

    This is an amazing tutorial, I do have a trivial question though. Why not use Time.deltatime in methods called inside OnAnimatorIK, multiplied by lerping speed?

  • @ahmetahaydemir
    @ahmetahaydemir 5 лет назад +4

    You deserve much more recognition. Keep up the good work.

  • @MidnightHourr
    @MidnightHourr 4 года назад +2

    This is what I'm looking for, thank you man! You are awesome.

  • @paperbob4302
    @paperbob4302 4 года назад +5

    Why is it that whenever I enable the foot ik, whenever my character goes up to a high area and drops off it sinks into the ground. Is this with the foot ik sticking to the ground too much? What do you think I could do to fix this?

  • @nerounity188
    @nerounity188 4 года назад +1

    Best Unity IK tutorial in youtube

    • @Filmstorm
      @Filmstorm  4 года назад

      You’re the best! Thanks for watching! 👍🏼

  • @duane7032
    @duane7032 3 года назад +1

    Thanks So much this tutorial worked for me. I applied it to a Mixamo Character

    • @duane7032
      @duane7032 3 года назад

      However I cannot get the FootCurve thing to work at the end :(

  • @jiazq
    @jiazq 5 лет назад +2

    2 trivial questions:
    1. the character can't walk onto the stair step (blocked but ok only when trun on 'use pro ik ')
    2. only get up not down. when back like the character is hover in the air. why ?

  • @daomingliu7251
    @daomingliu7251 4 года назад +3

    where can i get the project,the download url is broken.

  • @dattan2850
    @dattan2850 5 лет назад +1

    thanks so much! I just got it working and now I am just playing around with it! Thanks!

  • @turkey0709
    @turkey0709 9 месяцев назад

    I have a problem with the variable of pelvisOffset, even if don't use it, the IK works correctly. But if I set a value for the pelvisOffset, the IK can’t work correctly, and the position will go up

  • @SanthoshKumarfojoheartthrobe
    @SanthoshKumarfojoheartthrobe 5 лет назад +2

    wow!
    please also make the camera blending tutorial

    • @Filmstorm
      @Filmstorm  5 лет назад

      Yes I am working on the camera blending tutorial - will be ready early next week :)

  • @Booshi_dev
    @Booshi_dev Месяц назад

    Dude this is awesome!

  • @gibridmamakaki8042
    @gibridmamakaki8042 Год назад

    NullReferenceException: Object reference not set to an instance of an object
    Feet.AdjustFeetTarget (UnityEngine.Vector3& feetPositions, UnityEngine.HumanBodyBones foot) (at Assets/scripts/Feet.cs:129)
    Feet.FixedUpdate () (at Assets/scripts/Feet.cs:40)
    Help(((

  • @ProxyDoug
    @ProxyDoug 5 лет назад +8

    What if you're not using a Humanoid rig?

  • @SavanaStudios
    @SavanaStudios 3 года назад +1

    My feet jump when interfering with trigger colliders, any idea how to change?

  • @burgundyboysyt2272
    @burgundyboysyt2272 Месяц назад

    If I run down a mountain the lags bug And fly around everywhere

  • @fazin85
    @fazin85 Год назад +1

    the link to the project file is broken

  • @SavanaStudios
    @SavanaStudios 5 лет назад +4

    Heyy im using unity's 3rd person controller(cause ive customized it alot) but the jump isnt really working with the foot ik very good, any tips?

    • @Filmstorm
      @Filmstorm  5 лет назад +3

      I would recommend for jumping, to just turn off and on the IK when you're grounded again, you can either use a raycast down to detect when the player is on the floor or use the CharacterController.IsGrounded method :)

    • @SavanaStudios
      @SavanaStudios 5 лет назад +1

      @@Filmstorm Perfect! got it working, thanks

    • @rafalradziwill9017
      @rafalradziwill9017 5 лет назад

      @@SavanaStudios Do your feet rotation work because my ones doesn't

    • @patrickschweizer1650
      @patrickschweizer1650 5 лет назад

      @@Filmstorm how to disable ik while jumping? thanks :)

    • @SavanaStudios
      @SavanaStudios 3 года назад

      @@patrickschweizer1650 I used if (this.animator.GetCurrentAnimatorStateInfo(0).IsName("YourAnimationName")) and disabled it if it was true for the jump anim

  • @bayernmaik8583
    @bayernmaik8583 3 года назад

    Are Animations Curves evaluated in blend trees additive? I think this gets funny with more complex blend trees

  • @ThePoeticPulse
    @ThePoeticPulse 4 года назад

    You have done a great job but the project file link does not work can you please update the link

  • @dest5218
    @dest5218 Месяц назад

    Link is down, please help!!

  • @yunusemrebaran3842
    @yunusemrebaran3842 5 лет назад +1

    bro nice tutorial but how u do animator part can u share me a this project i want examine for on it if u do it i m be happy ,thank you.

  • @rafaelresende5413
    @rafaelresende5413 4 года назад

    Why is it affecting my Animation Rigg??? I put a pistol locked in my UpperLeg_R and it's works, but when I use ur feet placement system the animation rig of the pistol just ignores the leg position and rotation!
    I think it maybe animation IK executes after RigBuilder in importance order!

  • @gabrielmendes3867
    @gabrielmendes3867 4 года назад

    Hi. AdjustFeetTarget is a variable? In my Script ta giving error in that command.
    "This command does not exist in the current context"

  • @winstonmiller9347
    @winstonmiller9347 4 года назад

    ur tutorial is amazing ... I am a beginner and even though I have followed ur tutorial to the last line my results were not what i was expecting , when enableIK is true the player starts hovering in mid-air. I have played around the setting but still no good. pls help...

  • @gabrielfidelles3668
    @gabrielfidelles3668 4 года назад

    Which video did you set the animations/animator? I code everything but I think that my animations/animator aren't configurated correctly...

  • @nmezero7762
    @nmezero7762 3 года назад

    Uhm, in VERY late to the party and this link for the code is no longer available.... can someone help with this?

  • @jonasvirsila4179
    @jonasvirsila4179 5 лет назад

    Can I use the IK for the cinematics? If for example my character is walking under the road (the walk animation), can IK fix that? Cause I couldn't look anywhere else of how to make you character animation walk on mountains and a rocky land. Cause what will the character animation will do is walk under or through them.

  • @giovannanapolitano3260
    @giovannanapolitano3260 5 лет назад +1

    I'm sorry but I did not understand how to set the animetor with just three parameters ... (I have many animations to perform, you can still adapt this scritp?).....you're amazing!

    • @Filmstorm
      @Filmstorm  5 лет назад

      Hey Giovanna, I’ll try to help you out with this, for the animator - if you go the parameters section of the left you’ll just need to create two new float values for the left foot and right foot. Then as shown in the tutorial for each animation you need to create curves for when each foot is up and down. I hope that helps a bit, let me know if you need more info 👍🏼

    • @giovannanapolitano3260
      @giovannanapolitano3260 5 лет назад

      @@Filmstorm Thanks a lot. I will try to do it

    • @giovannanapolitano3260
      @giovannanapolitano3260 5 лет назад +1

      @@Filmstorm sorry for the insistence, but I can not use this script well ... the InputX and ImputZ parameters of the animator to what they should serve? I do not understand what to connect them ....

    • @Filmstorm
      @Filmstorm  5 лет назад

      InputX is used for the left and right movement, InputZ is used for forward and backwards movement. The Inputx and Inputz are setup to move the character with root motion via code. So if you make a 2d blendtree - with inputz 0,1 (for forwards) inputz (0,-1) and inputx -1,0 for left and inputx 1,0 for right and then plug the corresponding animations for left, right, forward and backwards into those blendtree positions you will now be able to use these variables correctly. 👍🏼

  • @siavashaliyari3458
    @siavashaliyari3458 5 лет назад +1

    thanks for your awesome content

    • @Filmstorm
      @Filmstorm  5 лет назад

      You’re very welcome, thanks for watching!

  • @thorjor1
    @thorjor1 4 года назад

    This is pretty spectacular, this was the first video that came up for me when trying to get a grasp on footIK. After finishing this all up, the only problem I have is constraints when having one foot on the ground and another on a steep ramp (using pro) the leg and foot on the ramp will flip into an REALLY unnatural and noticeable curvature. (walking really slowly up a 30 degree ramp with one leg on, one leg off)
    Any ideas?

    • @luizp07
      @luizp07 4 года назад

      I found a sort of cheaty way around this. Using a character controller and the OnControllerColliderHit function you can track the slope angle your character is moving. So, whenever the slope angle is above 30 degrees I change my feet IK variables to these:
      raycastDownDistance = 2;
      pelvisUpAndDownSpeed = 1;
      feetToIkPositionSpeed = 1;
      From testing I noticed these values make going up a ramp much smoother and also avoid to a certain extent the problem you're describing.

  • @TacoMax2011
    @TacoMax2011 Год назад

    I am having a error saying something about object not set to an instance of and object this is the line of code
    AdjustFeetTarget(ref rightFootPosition, HumanBodyBones.RightFoot);
    if anyone knows what to do please help.

    • @kylianfacquet8513
      @kylianfacquet8513 Год назад

      verify that you are correctly calling the function

    • @TacoMax2011
      @TacoMax2011 Год назад

      @@kylianfacquet8513 hey wanna know something. i didn't have ik pass on... so im so pissed but it works now

  • @ghua
    @ghua 5 лет назад

    superb tutorial, thanks!!!!

  • @kalpolproductions8558
    @kalpolproductions8558 2 года назад

    how do i download it for free?

  • @ashir.javed6
    @ashir.javed6 5 лет назад +1

    Subscribe as soon as you said i can download a folder

  • @Muhammad-Hamdi
    @Muhammad-Hamdi 5 лет назад +1

    Project link is not working, any help?

    • @Filmstorm
      @Filmstorm  5 лет назад

      Muhammad Hamdi check the comments, have a permanent google link there, we are updating our site at the moment 👍🏼

    • @Muhammad-Hamdi
      @Muhammad-Hamdi 5 лет назад

      @@Filmstorm Okay, thanks!

    • @Muhammad-Hamdi
      @Muhammad-Hamdi 5 лет назад

      @@Filmstorm I'm sorry but I can't find it, I looked up the whole comment section with no results, can you please give me the link here?

    • @dotjunx
      @dotjunx 5 лет назад

      @@Muhammad-Hamdi Hey man, I found the link in the first video: drive.google.com/uc?export=download&id=14O_75Zse0t6YBXiILNfQ3KqpIVts2qcy

  • @SamiKhammar
    @SamiKhammar 5 лет назад +1

    Maaan awesome video , thanks god it popped up in my RUclips home .
    Keep it up with this advanced videos and u will have more subscribers than Brakeys

    • @Filmstorm
      @Filmstorm  5 лет назад

      Thanks Sami! Really appreciate it!

    • @SamiKhammar
      @SamiKhammar 5 лет назад

      I just tried your code and everything seemed to work except the pro feature, it's not working.. is it related to the foot curves ?
      Im using my own animator and my own blend tree on unity 2017.4
      Do you have any suggestions to fix the problem ?
      Im not sure exactly if pro features is working or not lol like sometimes one foot rotates and the other doesn't rotate towards the ground

    • @SamiKhammar
      @SamiKhammar 5 лет назад

      I fixed it buy adding the RightFootCurve and LeftFootCurve on Idle animation too cus i forget it

  • @kinggore2969
    @kinggore2969 5 лет назад +1

    This is awesome. Thanks. :D

    • @Filmstorm
      @Filmstorm  5 лет назад

      You are very welcome! 👍🏼

  • @patrickbateman59
    @patrickbateman59 5 лет назад

    How make a 1st person camera with cinemachine please ?

  • @albertochimal3723
    @albertochimal3723 3 года назад

    the link not found please help

  • @manishotaval8316
    @manishotaval8316 5 лет назад +1

    Any tutroial on shoot or reload animation blending with locomotion?

  • @bobbyneal2498
    @bobbyneal2498 5 лет назад

    Your tutorial worked, but my player is floating whenever I walk off the platform. How do I fix this?

    • @Leonardorth.
      @Leonardorth. 4 года назад

      I know this comment was written 1 year ago but this issue is quite normal and easy to fix. The problem is that the feet are trying to compensate for the huge gap (when the character is in the air). I would recommend checking if the character is grounded and turning the IK system off when that isn't true, so when the character jumps or walks off a platform.

  • @rafaelresende5413
    @rafaelresende5413 4 года назад

    Animation Curves not display here!

  • @D34D1NG
    @D34D1NG 4 года назад +1

    The link to your project says error 404. It doesn't lead to your actual project.

    • @Filmstorm
      @Filmstorm  4 года назад

      Thanks for the heads up, we’ll issue a new link, I’ll post it directly here when it’s ready for you 👍🏼

    • @D34D1NG
      @D34D1NG 4 года назад +1

      @@Filmstorm Thank you!

    • @Filmstorm
      @Filmstorm  4 года назад

      Sorry it took a while, link is back online now :)
      filmstorm.net/tutorial/create_an_ik_foot_system_in_unity/

    • @lukasjarasunas8810
      @lukasjarasunas8810 4 года назад

      @@Filmstorm sorry but the link does not seem to be working :( - it takes me to a page where if I hit download resources it scrolls the page down a bit, without any links to resources. Furthermore, if you try to subscribe to the mailing list, the button doesn't even seem to work.

    • @peterhuijsen
      @peterhuijsen 4 года назад

      @@Filmstorm It still says 404 page not found, could you please fix this?

  • @lauch8844
    @lauch8844 5 лет назад +1

    download link is broken :(

    • @Filmstorm
      @Filmstorm  5 лет назад

      filmstorm.net/blogs/news/create-a-foot-ik-system-from-scratch-in-unity-c-1

    • @BitPlayYT
      @BitPlayYT 5 лет назад +1

      @@Filmstorm Still broken :(

    • @Filmstorm
      @Filmstorm  5 лет назад

      Ah sorry, didn’t realise the actual link was now broken, will fix that up now and let you know directly here.

    • @Muhammad-Hamdi
      @Muhammad-Hamdi 5 лет назад

      @@Filmstorm Is it fixed yet?

  • @eatmylaz0r
    @eatmylaz0r 5 лет назад

    No more UE4 tutorials Filmstrom? :(

  • @immysoun
    @immysoun 4 года назад

    that intro made me jump

  • @SomewhatMade
    @SomewhatMade 5 лет назад +1

    when im walking up a ramp, my character shoots into the ground for a brief period. do you know why that is and how i could fix it?

    • @TheCarsonic
      @TheCarsonic 4 года назад +2

      This is probably irrelevant for you now, but if you have defined your own gravity for your character controller you need to also reset the gravity when you are touching the floor. Otherwise your downwards velocity will continuously build up and launch you downwards if you go off a ramp

  • @paulkruger4156
    @paulkruger4156 5 лет назад +2

    "You can download the project here: " Nope, 404 page not found!!!

    • @ivangamer8022
      @ivangamer8022 5 лет назад +10

      @@Filmstorm Still 404 :/

    • @Filmstorm
      @Filmstorm  4 года назад +1

      Lee it’s available here along with our other projects filmstorm.net/assets/ 👍🏼

  • @tiger5d9
    @tiger5d9 3 года назад

    Talking about "Making it from scratch" ....*Okay here is our starting script...* xD

    • @zarrsaduss
      @zarrsaduss 3 года назад

      it says making foot placement from scratch, there are starting scripts for basic character controls

  • @pauloviniciuscoral1128
    @pauloviniciuscoral1128 4 года назад +10

    Hey. Thanks a lot! I had issues with the pelvis position with other approaches.
    I used my own Character Controller with full Rigidbody and worked great.
    However, I had a problem with jumping.
    As you stated in another comment, by disabling the IK System partially solved the problem. The animation "glitched" when jumping from different heights.
    By reseting the lastPelvisPositionY to zero after the IK System was turned on solved this problem.
    Hope it helps someone.

  • @samuelbelanger6588
    @samuelbelanger6588 3 года назад +8

    If your feet are not rotating correctly like your animations, just add that at 37:06 ->
    Quaternion rp = Quaternion.LookRotation(foot.transform.parent.forward, foot.parent.up);
    Vector3 footRot = new Vector3(0f, Quaternion.Inverse(rp).eulerAngles.y, 0f);
    feetIkRotations = Quaternion.FromToRotation(Vector3.up, feetOutHit.normal) * Quaternion.Euler(footRot);
    After, just add variable to the function(..., Transform foot), and when you are calling FeetPositionSolver(..., animator.GetBoneTransform(HumanBodyBones.LeftFoot).transform)
    Don't forget to change HumanBodyBones to RightFoot for the RightFoot FeetPositionSolver function at 18:17
    Hope it worked for you =)

    • @antoninperrot9153
      @antoninperrot9153 3 года назад +1

      Exactly what I was looking for, thanks dude

    • @MihaiVladan
      @MihaiVladan 2 года назад

      Hey Samuel - Do you have any idea why my Feet Are Backwords after adding your code? Also the feet "jiggle" like they are broken on some surfaces

    • @vladyna8914
      @vladyna8914 Год назад +1

      @@MihaiVladan So first of all you don't need to inverse quaternion here,
      Vector3 footRot = new Vector3(0f, Quaternion.Inverse(rp).eulerAngles.y, 0f);
      it should be just
      Vector3 footRot = new Vector3(0f, rp.eulerAngles.y, 0f);
      Second thing this algorithm takes parent rotation(leg rotation) and applies it to child(feet) so if your feet rotation is independent(like feet rotation of y for some degree) than it won't keep initial rotation. You should also keep in mind that if you leg have slight idle rotation over Y it will be applied to feet too.
      Also this line:
      "Quaternion rp = Quaternion.LookRotation(foot.transform.parent.forward, foot.parent.up);"
      is same as
      "foot.parent.rotation"

  • @aiacademybysid5631
    @aiacademybysid5631 5 лет назад +3

    Big fan of your's but please plsss make video on:-
    Assassins creed parkour system and detail character creation in zbrush

  • @tarents222
    @tarents222 4 года назад +5

    links is down

  • @Rook1e0ne
    @Rook1e0ne 5 лет назад +2

    Hallo . I have a question because i cant get this to work .Do i need a Character controller component in my player to work this?(i have my own controller but this doesent work)
    Edit : ok the tutorial works but something that must be pointed out .. the animator must be placed on the same object as the Movement script . I had the animator on a child object and was doing GetComponentInChildren to get it but for some reason even if the correct animator was assigned properly the ik wasnt working . I am not sure if its clear what i just said but thats what it is

  • @thabanglekgetho8715
    @thabanglekgetho8715 Год назад +3

    This is honestly the best foot IK video out there. Still amazed at how well it all worked out.

  • @xoanle8526
    @xoanle8526 4 года назад +3

    I can't download. Someone who can download this project?

  • @juicedup14
    @juicedup14 Год назад +1

    wheres the project

  • @АннаКошкина-б4в
    @АннаКошкина-б4в 3 года назад +1

    Does anyone have working link or project itself?

  • @meddjihed9108
    @meddjihed9108 3 года назад +1

    page not found for downloading the project

  • @ch3ll763
    @ch3ll763 2 года назад +1

    Thanks for video!!! download project link doesnt work, can u add one? thx for tutor

    • @Filmstorm
      @Filmstorm  2 года назад

      Yes I’ll look into it, I saw there was a download created just now?

  • @gustavomartins1768
    @gustavomartins1768 3 года назад +1

    Missin link 'n'

  • @xwtek3505
    @xwtek3505 3 года назад +1

    You forgot blogs/p/ part on your url

  • @sapra3830
    @sapra3830 5 лет назад +1

    I followed the tutorial, however there are some points where the pelvis goes too much down making the foot place on weird places. Do you know why is this happeing and how can I set a minHeight? Or is there any easier solution?

  • @theknownunknown3904
    @theknownunknown3904 5 лет назад +3

    Thank you thank you thank you thank you

  • @timberghost8836
    @timberghost8836 5 лет назад +1

    I got the IK movement working after switching from mixamo animations, I recommend just grabbing animations from the unity asset store, everything seems to be working as intended, however it seems my right foot reacts more than my left foot, while my right foot lowers further to reach the default layer than my left foot, i followed the tutorial exactly. would anyone have any ideas on what to check or try? Thankyou! Also does Filmstorm have a discord channel

  • @mrchrissross
    @mrchrissross 5 лет назад +2

    I feel like this is only half a video where I've missed the first half. Could you please direct me to where to make a Full IK system from scratch, starting with you opening a new project?

    • @Filmstorm
      @Filmstorm  5 лет назад +2

      Hi there, this shows the full process of creating an IK foot system, if you follow any of our other third person tutorials you’ll be able to find how the system we are currently using is made. It’s just our starting off script from our C# Character Movement tutorial.

    • @mrchrissross
      @mrchrissross 5 лет назад

      @@Filmstorm Brilliant cheers mate :)

    • @Filmstorm
      @Filmstorm  5 лет назад +2

      Here you go, Create an Open World Movement System in Unity C# ruclips.net/video/_DmUL9KK9Yk/видео.html

  • @ujjawaltyagi9481
    @ujjawaltyagi9481 5 лет назад +2

    Great but
    Please continue GTA series

  • @WindBendsSteel
    @WindBendsSteel 4 года назад +1

    any idea on how to fix the running uphill weirdness?

  • @alicewithalex
    @alicewithalex 5 лет назад +2

    Blow my mind) Make more tutorials on characters and third person stuff) Your are awesome!

    • @Filmstorm
      @Filmstorm  5 лет назад +2

      Thanks Александр!

  • @coreyw1245
    @coreyw1245 2 года назад +1

    Could you make a video explaining how to 3d model and animate using blender

  • @rakshitranjan8040
    @rakshitranjan8040 3 года назад +1

    will this work on the unity terrain??

  • @Crappee
    @Crappee 2 года назад

    why is my movemetn so jitery after doing this

  • @samddev1251
    @samddev1251 2 года назад

    Your page could not be found?

  • @toprak8082
    @toprak8082 6 месяцев назад

    The link is broken

  • @Bunnymadeit
    @Bunnymadeit 7 месяцев назад

    Big THANK YOU 😊

  • @turn1p
    @turn1p 4 года назад +2

    The filmstorm.net is requiring me to sign up for a membership to access the asset area. it shows the tutorial is free but i cant get into the access center
    edit: and the link in the description takes me to a 404 download error

    • @kutayguler6218
      @kutayguler6218 4 года назад +1

      I'm having the same issue

    • @caolangadd9734
      @caolangadd9734 4 года назад

      Same issue here, dam I really want to do this tutorial... I did another ik foot placement system tutorial but it wasn't the greatest... pls fix...

  • @durangogames4146
    @durangogames4146 5 лет назад +2

    This is awesome! Thanks!

    • @Filmstorm
      @Filmstorm  5 лет назад

      You're very welcome Durango!

  • @Kombi-1
    @Kombi-1 5 лет назад +1

    sub - 25.01.19 15.58

    • @Filmstorm
      @Filmstorm  5 лет назад

      Hope you enjoyed the tutorial Kombiice :)

  • @previous1591
    @previous1591 5 лет назад

    I have made the IK, it's working. But my character legs keep lagging. At times it even disappears. Can u pls help me with this ? Thanks for the tutorial though

  • @budrys1356
    @budrys1356 5 лет назад +1

    Hello, you sad that you learned coding through books, have any of them to recommend ? Would apreciate it.

    • @Filmstorm
      @Filmstorm  5 лет назад

      Yes I can recommend a great book in its second edition now, called Unity in Action. Really great to get started and also great for learning more advanced techniques as well.

    • @budrys1356
      @budrys1356 5 лет назад

      @@Filmstorm Thanks a lot

  • @kenjiju2174
    @kenjiju2174 5 лет назад +1

    Thank you for this. Out of 3-4 different foot IK methods I've tried, this is the first one that worked. However, the dip the character does is way too low. My character is tall and skinny and even on really small inclines I get a sonic the hedghog effect when I run. I've played around a lot with the settings, but the result is mostly the same. Is there a way to lessen the effect of the hips dipping so low? Using the offset just makes my character float.
    Thanks again.

    • @Filmstorm
      @Filmstorm  5 лет назад

      Hi Kenji! That’s great to hear that this system worked for you 👍🏼 From memory, for the character dipping I would recommend trying to change the actual Y pos (height from point) and the distance (length) this should fix it but if not I’ll have a look at the code again when I can get back to my code 👍🏼

    • @LordMegabite
      @LordMegabite 5 лет назад

      Jaja sonic the hedghog what happens to me XD, remove the MovePelvisHeight from the ecuation and solves the problem. Also if you still have problem maybe you gonna need to make the step animations a bit lower.

  • @ottersaurus
    @ottersaurus 4 года назад +1

    Please continue the Open World Tutorial Series, you make the best tutorial videos on the entire platform. Everything is so easy to understand with your videos.

    • @Filmstorm
      @Filmstorm  4 года назад +1

      Thank you so much, I'm sorry I've been away for so long, my wife and I just had our first baby girl, it has taken a lot my time away from the videos. I'll do my best to get up and running again :)

    • @nerounity188
      @nerounity188 4 года назад

      @@Filmstorm Congratulations

  • @Cynd3ll3
    @Cynd3ll3 3 года назад

    Hi :D your tuto was very helpfull, but i was wondering about le animator parameters that you demand, the foot curve, maybe you can explain this part more precisely because, i don't understand "Pro Ik Feature" for the rotation, i create the parameters but you don't explain this part :) so when I check it nothing happend, thanks you so much for this great tutoriel :) and sorry if my english is bad

  • @ZeyFight
    @ZeyFight 2 года назад

    Good morning ! ^^
    I have a problem...
    I can't add the curves in the animations (.anim). It doesn't appear...
    Do I really have to add to my fbx player or is there a alternative solution/answer ?

  • @asatanseesnatasa
    @asatanseesnatasa 4 года назад +1

    Another incredible tutorial mate. My model is a little bouncy when walking up and down slopes but other than that everything is working great!!!

    • @Filmstorm
      @Filmstorm  4 года назад

      That’s so good to hear! Thank you! We are working on more tutorials at the moment for a massive series - should be out in under a week 👍🏼

    • @alganongun1903
      @alganongun1903 3 года назад

      Hey That is because of you're movement code if you are using rigidbody movement you have to add manually for stairs and slope

  • @DandyKnightGames
    @DandyKnightGames 5 лет назад

    I'm still trying to search for a solution, but maybe somebody can help me. Whenever I walk off a ledge or down a slope, my character controller seems to float above the player and keeps trying to pull it back up.

  • @mrbabs2704
    @mrbabs2704 5 лет назад

    Hi Filmstorm,
    I am working on my senior project, which happens to be a game all by myself. As you can guess, the thing I am currently working on is foot IK's. I followed this tutorial and even tried the source code as well, but I can't seem to get this working with the current character controller that I have. In addition, and I assume that this is for the same reason, other IK's previously working on my character aren't working. Explaining this is a little difficult, so if we could talk about this in some other way I would be very appreciative!
    Thanks!

  • @iKidBuu
    @iKidBuu 4 года назад

    would you use the same method of setting up curves for the IK weight for attack animations? even in longer combos or just set the weight to 0 while attacking? and also for jumping and aerial loop/state im assuming also set ik weights to 0?

  • @noblephantasms7250
    @noblephantasms7250 Год назад

    Can I use IK Foot system with character that doesn't use rootmotion? Or does it have to be an animation controlled character?

  • @Havie
    @Havie 3 года назад

    Holllaaa, real great stuff, you guys got a discord?

  • @sfuperman56
    @sfuperman56 2 года назад +3

    Since the link is broken, here's the script he starts with so you can follow along:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    [RequireComponent(typeof(CharacterController))]
    public class MovementInput : MonoBehaviour
    {
    private float InputX, InputZ;
    private Vector3 desiredMoveDirection;
    private bool blockRotationPlayer = false;
    [Range(0, 0.5f)] public float desiredRotationSpeed = 0.1f;
    public Animator anim;
    private float Speed;
    [Range(0, 1f)] public float allowPlayerRotation = 0.1f;
    public Camera cam;
    public CharacterController controller;
    private bool isGrounded;
    [Header("Animation Smoothing")]
    [Range(0, 1f)]
    public float HorizontalAnimSmoothTime = 0.2f;
    [Range(0, 1f)]
    public float VerticalAnimTime = 0.2f;
    [Range(0, 1f)]
    public float StartAnimTime = 0.3f;
    [Range(0, 1f)]
    public float StopAnimTime = 0.15f;
    private float verticalVel;
    private Vector3 moveVector;
    void Start()
    {
    anim = this.GetComponent();
    cam = Camera.main;
    controller = this.GetComponent();
    if (anim == null)
    {
    Debug.LogError("We require " + transform.name + " game object to have an animator. This will allow for Foot IK to function");
    }
    }
    void Update()
    {
    InputMagnitude();
    }
    void PlayerMoveAndRotation()
    {
    InputX = Input.GetAxis("Horizontal");
    InputZ = Input.GetAxis("Vertical");
    var camera = Camera.main;
    var forward = cam.transform.forward;
    var right = cam.transform.right;
    forward.y = 0f;
    right.y = 0f;
    forward.Normalize();
    right.Normalize();
    desiredMoveDirection = forward * InputZ + right * InputX;
    if (!blockRotationPlayer)
    {
    transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(desiredMoveDirection), desiredRotationSpeed);
    }
    }
    void InputMagnitude()
    {
    InputX = Input.GetAxis("Horizontal");
    InputZ = Input.GetAxis("Vertical");
    anim.SetFloat("InputX", InputX, HorizontalAnimSmoothTime, Time.deltaTime * 2f);
    anim.SetFloat("InputZ", InputZ, VerticalAnimTime, Time.deltaTime * 2f);
    Speed = new Vector2(InputX, InputZ).sqrMagnitude;
    if (Speed > allowPlayerRotation)
    {
    anim.SetFloat("InputMagnitude", Speed, StartAnimTime, Time.deltaTime);
    }
    }
    }

  • @chigirochan-d8798
    @chigirochan-d8798 5 лет назад

    Please can you make a video bout how to program pushing and pulling objects,with ik
    Like inside's gameplay