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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Having issues jumping properly. Character jumps, and bounces down.

Discussion in 'Animation' started by choleaoum, Oct 1, 2015.

  1. choleaoum

    choleaoum

    Joined:
    Feb 17, 2014
    Posts:
    4
    I've been at it for a couple of days, basically I'm using the character script that was on the Ethan example. Basically, my character would jump and bounce against the ground. The capsule collider is set properly, rigidbody appears to be setup correctly, and all the animation is handled through the animator.

    if(jump) {
    m_Rigidbody.velocity = newVector3(m_Rigidbody.velocity.x, m_JumpPower, m_Rigidbody.velocity.z);
    m_IsGrounded = false;
    m_Animator.applyRootMotion = false;
    m_GroundCheckDistance = 0.1f;
    }

    He doesn't appear to bounce when the gravity gets turned up really high, I believe this might be animated related.
     
  2. BarbaricSpaceWhale

    BarbaricSpaceWhale

    Joined:
    Aug 26, 2015
    Posts:
    5
    From what I've seen so far, bounciness is a property of whatever physic material you have applied to your collider. Did you check what physic material is applied to your character's capsule collider?

    Unless it says "None (Physic material)" you should check its bounciness and bounce combine attributes. If it does say "None (Physic material)" you might either need to give more info or ask someone else