Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Character slowing down when hitting ground

Discussion in 'Physics' started by Deleted User, Dec 27, 2019.

  1. Deleted User

    Deleted User

    Guest

    Hi,
    I have been trying to perfect movement of my character, and came across an issue that i can't resolve.

    When my character touches the ground (after finished jump or just by simply falling down to a lower platform)
    its speed decreases. I was playing around with the variables like gravity, mass, etc. but nothing worked.

    Then i tried to set friction of my PhysicsMat2D to 0 right after i jump and to original after i land but it had no effect at all.

    Any clues would be appreciated
     
  2. xXNoName2006Xx

    xXNoName2006Xx

    Joined:
    Nov 11, 2020
    Posts:
    1
    Same Problem
     
  3. julianprod

    julianprod

    Joined:
    Feb 3, 2020
    Posts:
    2
    It happened to me. I'm using CharacterController and it has an Animator component as well.

    This is how I solved it:
    1. Re adjust the center of the CharacterController so its borders surrounds the character correctly.(Meaning that the green borders don't go too much lower or higher from the character body).
    2.Activate the Apply Root Motion in the Animator component. (I think this was the key part for my solution, but step 1 was needed anyways).