Це відео не доступне.
Перепрошуємо.

Character Controller Tutorial in Unity | AshDev

Поділитися
Вставка
  • Опубліковано 19 сер 2024

КОМЕНТАРІ • 23

  • @celestialvamp
    @celestialvamp 11 днів тому +1

    If anyone wants to make it so that the diagonal speed is the same as the horizontal and vertical speeds, make sure to normalize the movement vector in the GroundMovement() function, so: Vector3 move = new Vector3(turnInput, 0, moveInput).normalized; . Also if you notice that there is a sliding/smoothing effect to your character after normalizing the movement vector, all you have to do is GetAxisRaw instead of GetAxis in the InputManagement() function.

  • @ragerungames
    @ragerungames 3 місяці тому +2

    Nicely explained as always!

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

    im a big fan of all your work/script !!! Keep the good work ! lov u

  • @Ollive24
    @Ollive24 3 місяці тому +2

    best channel

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

    Nice tutorial, as always !

  • @Hunter-X9211
    @Hunter-X9211 3 місяці тому +2

    Hello,
    How can we add dash function in this code ??..

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

      Just like sprinting, you can create a different speed and and set the current speed to that for your appropriate dash time and trigger it through some button (For basic approach). And then, add some kind of cool down timer so that, the player doesn't keeps on moving with the dash speed.

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

    Nice :D

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

    Looking forward to the animation update :)

    • @ashdev
      @ashdev  Місяць тому +1

      The animations tutorial have been uploaded, check it out 🙂

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

      @@ashdev nice, thankyou

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

    Hi, when I use the controller the character jumps up

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

    I have a question. So you said you will use kinematic approach and use Character controller component. So what's the difference if we use character controller component or Rigidbody with kinematic checkbox set to true...?

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

      It's more complex hence prone to errors and less efficient. You have to code each and everything.
      It's recommended to use, if you want to do some physics calculations or collision detections etc.
      It's in between of using a fully physics based character controller and going with fully kinematic one (like built in character controller component).
      Built in character controller is more efficient and already has basic functionalities.
      These are all the things to consider before choosing one.

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

    Thats awesome, also how do you make when making character controller that is like animal like a dog or snake or bird

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

      For basic one, it's the same, the difference will only be in the animations. (For dogs, cats etc). But you won't be able to use the built in character controller because of the capsule collider you have to create a custom one but the approach will be same.

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

    hey Ash Dev,
    when i wrote the player controller script and loaded unity again it was showing a error saying
    Assets\player controller(38,25):error CS1002: ; expected
    what do i do now please help me

    • @ashdev
      @ashdev  Місяць тому +1

      You have to add " ; " at the end of each line of code, that's what this error is for

  • @creative.outlet
    @creative.outlet 3 місяці тому +1

    This was great! Thanks!
    Is there a reason why you didn't use the new Input System?

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

      New input system is a whole different topic to explain, and it's not a good idea to explain two different things simultaneously.
      We'll cover it in some future tutorial.

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

    Great video
    I would like to ask about the asset name you used in this video?

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

      What asset?

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

      @ashdev 9:34 the plane and cubes is that asset on unity asset store or you made it?