Applying Gravity | Simple Character Controller in Unity | Part 4

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

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

  • @Vahx14
    @Vahx14 4 месяца назад +1

    I have seen so many complicated videos on how to add gravity to a character controller component, its always a blessing to find the golden youtube video where someone explains it in less then 5 minutes and it actually works.

  • @RodrigoRVSN
    @RodrigoRVSN 10 месяцев назад

    Very well explained, thanks!

  • @ayotundeayoko5861
    @ayotundeayoko5861 11 месяцев назад +1

    boosman...you are the best!

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

    These videos are so well explained, thanks! Qualitycontent

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

    Your lessons help me a lot to learn Unity. Thank you very much )

  • @HelionGames
    @HelionGames 2 года назад +2

    Waiting for next part !!!

  • @estebanherrera2311
    @estebanherrera2311 Год назад +2

    literally you sav my life and mi job :)

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

    You helped me a lot by you kind sharing ;)

  • @gaycat599
    @gaycat599 Год назад +2

    why are you checking if the velocity is less than 0 in the script?

  • @qwertyuipdiu
    @qwertyuipdiu 7 месяцев назад +1

    Dude, where is the direction variable?????? I assume its the vector 3? when I try to use it in the apply gravity method, it does not exist, and I looked through your code, and I cant find anywhere where you called it.... why has nobody commented about this

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

      Hey! The variable is defined up top, as a Vector3, and the value is being set in the Move() method.

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

    Does this code not mean that the speed value will actually increase the velocity of the y axis aswell since the _direction.y is multiplied with speed?
    I think i solved my issue with a solution like this characterController.Move((moveDirection * movementSpeed + playerVelocity) * Time.deltaTime);
    playerVelocity is only ever changing its Y value

  • @Alcornoky
    @Alcornoky 8 месяцев назад

    For some reason my velocity doesn't get to -1, it keeps going down :c

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

    does this need a character controller to work? because i tried it on a normal block and it doesnt work

  • @md.salmanahmed3903
    @md.salmanahmed3903 11 месяцев назад

    how to add animation ??
    I add animation but animation didnt sotp??

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

    👍👍👍

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

    hmmm i had to make my gravity multiplier like .002 to make it seem normal

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

      Remember to multiply the gravity with Time.deltaTime twice

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

    Adding a gravity multilpier for a beginner video seems uneeded. Not sure why you added that to just further confuse people and take away from what youre trying to teach. Remember your dealing with beginners and not established ppl with your mindset (even if you think its a good idea).

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

      Thank you for the feedback! You are correct, should just keep things as simple as possible. Again, thank you! 🤗

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

    Rigidbody

  • @rakeshkryadav5888
    @rakeshkryadav5888 2 месяца назад

    why you didn't use Physics.gravity.y?