make my character slide under objects

i am using 3rd person character controller with unity to implement my runner game.
i can jump and run well with default animations,but how to make him slide under objects???
how to add animation or any other way…

For the physics, scale and offset the collider. Depending on the realism needed, the collider can either be resized/repositioned immediately at the beginning and end of the slide, or it can be done over time.

simply you should select your game object and open animation window from windows menu and create a new animation . in animation window you can create your sliding animation .

after that you should add this animation to animator file in animator component !!

then check if user click on slide button set the slide parameter to activate slide animation !!

parameter is something like variable that controls what animation should play

SO you need understand animation and animator first :slight_smile: