Third Person Controller in Unity - Jump & Gravity

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

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

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

    ● Playlist Link: bit.ly/3kh9Q3A
    ♥ Don't Click This! : bit.ly/2Zi3vu9

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

      شكرا اخي هل ممكن تراسلني على الواتساب

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

    Thank you! 😊🥳

  • @Costomgura
    @Costomgura 11 месяцев назад

    I have followed your serie to make this robot and so far so good... well almost. the gravity for me is really wierd. before this video my robot didnt have any gravit to him. now he does and falls to the ground. but the jump is really buggy. i noticed that you had a video you refered to in in your 3rd video but i cant find that video when you add physics to the game. thank you so far :)

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

    Hello, I want to make Joystic pack it that fps doesn't mean the character appears but I can't help me I'm A Kurd

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

    I update jump to easy make double/triple jump. NOTE.: in my script i split “gravity” in 2 variables, then when player jumps is go up, i set one value… and when player is falling a set a different value… this make player falling faster.
    [SerializeField, Tooltip("The max number of jumps player can do.")]
    private int maxJumps = 2;
    private int jumpsLeft;
    // -------------------------------------------------------------
    void Awake()
    {
    input = GetComponent();
    controller = GetComponent();
    animator = GetComponentInChildren();
    // PLAYER ABILITIES.
    jumpsLeft = maxJumps; // you can put this on "void Start()" if prefer.
    }
    // -------------------------------------------------------------
    void JumpAndGravity()
    {
    isGrounded = Physics.CheckSphere(groundCheck.position, 0.2f, groundLayer); // ground check.
    if(isGrounded && velocity.y