# Lock axis through blueprint

**URL:** <https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523>\
**Category:** World Creation\
**Tags:** Constraints, unreal-engine, Physics, question\
**Created:** [December 2, 2021, 7:51am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523 "2021-12-02T07:51:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaojujian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaojujian/32/88714_2.png) [@gaojujian](https://forums.unrealengine.com/u/gaojujian)\
**Post date:** [December 2, 2021, 7:51am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/1 "2021-12-02T07:51:54Z")

</div>

Hello, I want to dynamically set the release of lock position degrees of freedom through the blueprint, but there seems to be no effective access function. Does anyone know how to solve it?

![353377-snipaste-2021-12-02-15-48-29.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/7/1676fb7b28b63d55dd13e3547be941429949c138.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 2, 2021, 8:06am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/2 "2021-12-02T08:06:14Z")

</div>

Unfortunately, there’s no way to do that via Blueprints at the moment. The next best thing is to create a physics constraint and lock rotation there.

However, I need that in my project too, and I’m going to create C++ functionality to lock axes. I can make it into an actor component and share it with you, if you’re willing to implement one C++ class in your project.

---

<div class="post-metadata">

**Author:** ![gaojujian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaojujian/32/88714_2.png) [@gaojujian](https://forums.unrealengine.com/u/gaojujian)\
**Post date:** [December 2, 2021, 8:12am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/3 "2021-12-02T08:12:24Z")

</div>

thank you very much.You can send it to my Google email [gaojujian@gmail.com](mailto:gaojujian@gmail.com)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 2, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/4 "2021-12-02T12:43:51Z")

</div>

Here’s the download link, in case someone else needs it too: [UE4 Blueprint Axis Locker - Browse Files at SourceForge.net](https://sourceforge.net/projects/ue4-blueprint-axis-locker/files/)

---

<div class="post-metadata">

**Author:** ![gaojujian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaojujian/32/88714_2.png) [@gaojujian](https://forums.unrealengine.com/u/gaojujian)\
**Post date:** [December 4, 2021, 11:30am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/5 "2021-12-04T11:30:34Z")

</div>

Thank you very much.It is working.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 4, 2021, 11:55am UTC](https://forums.unrealengine.com/t/lock-axis-through-blueprint/491523/6 "2021-12-04T11:55:59Z")

</div>

Great! I’ll convert my comment into answer, please mark it Resolved so that other people could find it faster if needed.
