# Character model penetrates the ceiling after stopping "ctrl" (crouching)

**URL:** <https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025>\
**Category:** C++\
**Tags:** crouch, unreal-engine, crouching, question\
**Created:** [January 30, 2021, 9:57pm UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025 "2021-01-30T21:57:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Viares](https://forums.unrealengine.com/u/Viares)\
**Post date:** [January 30, 2021, 9:57pm UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025/1 "2021-01-30T21:57:01Z")

</div>

When I go up to the ceiling and hold down “ctrl” (crouching) it works fine. If I stop holding “ctrl” my character goes up and penetrates the ceiling. The camera with a separate model of hands remains in the crouch position, the other character model stands up. I am creating a first person game with a third person, only me can see my hands, and the opponent sees the model of the character that has created animations. It seems to me that when I stop holding “ctrl” it goes back to the “idle” animation, but I don’t know how to make the crouching animation work until I leave the low space.

How can I do this?  
Sorry for the poor English, I use a translator.

 ![328474-obraz-2021-01-30-231511.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/2/ef24821c64ad9b2a22838daefd48901b6da22aa9.jpeg)

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [January 31, 2021, 12:34am UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025/2 "2021-01-31T00:34:06Z")

</div>

hmm…I thought the character movement already did keep crouching if uncrouching would cause the capsule component to go through a blocking surface (assuming you are using the built in character movement crouch).

This may be a silly question, but does your ceiling have collision on?

---

<div class="post-metadata">

**Author:** ![Viares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Viares](https://forums.unrealengine.com/u/Viares)\
**Post date:** [January 31, 2021, 2:40pm UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025/3 "2021-01-31T14:40:54Z")

</div>

Yes, there is a collision of the ceiling because if I go without crouching it gets stuck and I can’t pass. I am using the built-in character movement crouch and blend space crouch animation.

I think the animation forces you to stand up and crashes into the ceiling, and the crouching collision stays while crouching.

 ![328503-crouch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/4/cb490810eb0e1afd329651c929f138e31d3b88fd.png)

---

<div class="post-metadata">

**Author:** ![Detach789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Detach789](https://forums.unrealengine.com/u/Detach789)\
**Post date:** [January 31, 2021, 3:59pm UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025/4 "2021-01-31T15:59:48Z")

</div>

I notice you have created your own bool “crouch true” rather than using the built in one. In your animation blueprint, is that the same bool you are using to decide if your character is animated as standing or crouching?

If so, you could try changing the animation blueprint to the built in crouching bool in character movement instead (I believe it is called “bIsCrouching” or something similar). I believe that one would follow the capsule component which already respects collision.

---

<div class="post-metadata">

**Author:** ![Viares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Viares](https://forums.unrealengine.com/u/Viares)\
**Post date:** [January 31, 2021, 5:06pm UTC](https://forums.unrealengine.com/t/character-model-penetrates-the-ceiling-after-stopping-ctrl-crouching/478025/5 "2021-01-31T17:06:45Z")

</div>

Thank you very much, it worked. I had “crouch true” instead of "is crouched
