Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

ThirdPersonControler keeps jumping on its own

Discussion in 'Physics' started by DeKac, Apr 7, 2018.

  1. DeKac

    DeKac

    Joined:
    Mar 1, 2018
    Posts:
    8
    Hello guys!
    I'm really frustrated because of the problem I have right now:

    I'm using the ThirdPersonControler from Standard Unity Assets and my character is walking on a Terrain. Terrain in my game is quite big and all the assets on it are also big so the default size character is to small so I had to scale it 7 times. This is where the weird stuff started to happen. Every time i'm running(without holding shift that makes it walk) over an uneven surface my character jumps over it instead of walking over it. Sometimes he jumps incredibly high and sometimes not, it's really weird and I don't know how to fix it. I've tried messing around with the settings but couldn't find anything.

    You can easily recreate this in new scene just by importing ThirdPersonControler, scaling 7 times, creating a terrain and raising ground to about knee height and try running over it.

    Would love to get some sort of help from anyone. Thanks!
     
  2. Snipe76

    Snipe76

    Joined:
    May 23, 2017
    Posts:
    12
    I had a similar problem in the past, I have fixed it using Physics material on the player collider.
    You can use the physics materials that are provided in the Standard assets but they are not perfect and the least realistic. but for starting you can use them.

    Go to the collider on the player and look for "Material" and create or use one.

    Capture.PNG


    on the other hand, your problem could be that you player can go through the ground and it flings him back up with the collision.
    You need to constrain him to specific angles that he can't go up to.

    Another thing you can try is configuring your rigidbody at Collision detection to Continuous Dynamic.

    RB.PNG

    I hope that helps.
     
    Last edited: Apr 8, 2018