# How do I make my camera stay at the same height when I crouch?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [May 20, 2023, 5:13am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112 "2023-05-20T05:13:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AclinxRL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AclinxRL](https://forums.unrealengine.com/u/AclinxRL)\
**Post date:** [May 20, 2023, 5:13am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/1 "2023-05-20T05:13:38Z")

</div>

I’m trying to make my camera stay at the same height when I crouch and when I’m standing. So when I crouch my camera will stay at the same height as if I were standing. Anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![56legion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/56legion/32/1194529_2.png) [@56legion](https://forums.unrealengine.com/u/56legion)\
**Post date:** [May 20, 2023, 10:12am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/2 "2023-05-20T10:12:00Z")

</div>

Which mode are you referring to? FPC or TPC?  
Anyway, it sounds like you are attaching your camera to the head am I right? Then, you can attach it to the capsule instead so that it will always stays with the capsule. Or you can play around with the attachments.

---

<div class="post-metadata">

**Author:** ![AclinxRL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AclinxRL](https://forums.unrealengine.com/u/AclinxRL)\
**Post date:** [May 21, 2023, 1:54am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/3 "2023-05-21T01:54:31Z")

</div>

I’m talking about TPC, and I’m pretty sure it is attached to the casule but I don’t know how to check if it is or not.

---

<div class="post-metadata">

**Author:** ![56legion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/56legion/32/1194529_2.png) [@56legion](https://forums.unrealengine.com/u/56legion)\
**Post date:** [May 21, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/4 "2023-05-21T12:52:41Z")

</div>

If so, then my other guess would be your height changes with the capsule height. As the function node of “crouch” is called, it will adjust the height of your capsule thus making your camera follow the new height.

So scratch that idea, attach it to your skeletal mesh and DO NOT attach it to any socket or bones. Set it to “NONE”. If done correctly, it will inherit the original skeletal mesh relative location which should be constant if you do not attach your camera/spring arm to any sockets or bones of the skeletal mesh.

---

<div class="post-metadata">

**Author:** ![AclinxRL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AclinxRL](https://forums.unrealengine.com/u/AclinxRL)\
**Post date:** [May 21, 2023, 4:24pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/5 "2023-05-21T16:24:50Z")

</div>

Thanks. I fell pretty stupid knowing it was that easy. I got it working how I want it to now.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 27, 2024, 10:31pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-camera-stay-at-the-same-height-when-i-crouch/1172112/6 "2024-01-27T22:31:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
