Search Unity

Question Character controller : gravity only works during movement?

Discussion in 'Physics' started by QbAnYtO, Sep 15, 2020.

  1. QbAnYtO

    QbAnYtO

    Joined:
    Dec 18, 2016
    Posts:
    223
    So I know “simple move” auto applies gravity but it makes my character fall through ground randomly and it messes up my jump direction manipulation.
    So I’m using “move character” and it’s working great. Except for when I jump.

    If I jump off a building, he will jump up and fall a bit until his jump animation ends. Once it ends, he just stands there... in the middle of the air. As if floating.
    If I walk forward , he then continues to fall downwards (gravity kicks in) as long as I continue moving.
    If I stop moving again, he stops in mid air again.
    move a bit, he falls again u til I stop moving. Etc etc.

    it’s like gravity only works when he is in movement.

    any ideas ? It’s a 3d platformer with character controller component and a move character action.
     
  2. TomBlackOfficial

    TomBlackOfficial

    Joined:
    Nov 30, 2018
    Posts:
    5
    check the animations and make sure they arent controlling the gravity