# Get the space height for maintain the capsulecomponent little size?

**URL:** <https://forums.unrealengine.com/t/get-the-space-height-for-maintain-the-capsulecomponent-little-size/440712>\
**Category:** Blueprint\
**Tags:** capsule-component, height, unreal-engine, UE4, Blueprint, question\
**Created:** [January 7, 2019, 7:24am UTC](https://forums.unrealengine.com/t/get-the-space-height-for-maintain-the-capsulecomponent-little-size/440712 "2019-01-07T07:24:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5c39f2a0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5c39f2a0](https://forums.unrealengine.com/u/anonymous_user_5c39f2a0)\
**Post date:** [January 7, 2019, 7:24am UTC](https://forums.unrealengine.com/t/get-the-space-height-for-maintain-the-capsulecomponent-little-size/440712/1 "2019-01-07T07:24:33Z")

</div>

Good day guys!  
I wanted to ask for something about the size what I’m giving to my CapsuleComponent of my ThirdPersonCharacter because I’m trying to create a capsule size transition like the crouching transition for don’t use the extra components of the crouching function what i dont need and breaks the new function what I’m trying to do (Slide).  
I let my actual BP and the result:

![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/0/80d1935593c9ab06e3a29153487f401a767f2d25.gif)

![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/0/80d1935593c9ab06e3a29153487f401a767f2d25.gif)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f0984456f8dd47c5beb0a68b72c3d6cf62ef2aa.jpeg) ](http://tinypic.com/images/goodbye.jpg)

my problem is when i release the f key (the key for the function) in little spaces the capsule get stuck and the mesh goes down.

how can i get the little size of the space for compare it with the original size of the capsule for maintain the little size of the capsule?

and for bonus track:

how can i maintain a mesh in his original place without AddWorldOffset function for change the position to normal?

Regards

Sorry if i had some english grammar problems :C

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [January 7, 2019, 8:51am UTC](https://forums.unrealengine.com/t/get-the-space-height-for-maintain-the-capsulecomponent-little-size/440712/2 "2019-01-07T08:51:44Z")

</div>

Have you tried a shape trace? [Traces Overview | Unreal Engine Documentation](https://docs.unrealengine.com/en-us/Engine/Physics/Tracing/Overview#usingshapetraces)  
For example you can break the Hit output of a SphereTraceByChannel node to get the Distance value which will be 0 if there was an initial overlap (the sphere didn’t fit).
