# How do I constrain a component's physics movement to a single axis with a Physics Constraint?

**URL:** <https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113>\
**Category:** World Creation\
**Tags:** unreal-engine, constraint, Physics, question, Blueprint\
**Created:** [April 9, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113 "2014-04-09T20:22:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seacomit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seacomit/32/1010314_2.png) [@Seacomit](https://forums.unrealengine.com/u/Seacomit)\
**Post date:** [April 9, 2014, 8:22pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/1 "2014-04-09T20:22:48Z")

</div>

How do i constrain a components physics movements to a single axis?

I have a paddle here, and a computer screen, I want the paddle to only be able to move on the x axis. At the moment, gravity kicks in and moves my paddle down the z axis.

 ![3614-issues.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/4/624cc633c9769f29ed12138b9183faad4d442a49.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Epic\_Maximusdb3\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Epic\_Maximusdb3\_1](https://forums.unrealengine.com/u/_Epic_Maximusdb3_1)\
**Post date:** [April 9, 2014, 9:16pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/2 "2014-04-09T21:16:13Z")

</div>

Hi Versatus,

Do you have your angular limits locked as well? Should be the section below linear limits section.

Also, if that does not work, have you tried making just the Y or Z motions free?

-Max B.

---

<div class="post-metadata">

**Author:** ![rob422lou](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rob422lou/32/88719_2.png) [@rob422lou](https://forums.unrealengine.com/u/rob422lou)\
**Post date:** [April 9, 2014, 9:26pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/3 "2014-04-09T21:26:41Z")

</div>

I’m not sure they use constraints, but if you look in their content example project, in the Animations level, you’ll find a few sliders that are constrained to a single axis. Try looking at one of those blueprints to see how it’s done. Might be helpful.

---

<div class="post-metadata">

**Author:** ![Seacomit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seacomit/32/1010314_2.png) [@Seacomit](https://forums.unrealengine.com/u/Seacomit)\
**Post date:** [April 9, 2014, 9:33pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/4 "2014-04-09T21:33:48Z")

</div>

Yea all my angular limits are locked, only the x axis is free, and I just tried locking just y or z and its just completely ignored.

---

<div class="post-metadata">

**Author:** ![Seacomit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seacomit/32/1010314_2.png) [@Seacomit](https://forums.unrealengine.com/u/Seacomit)\
**Post date:** [April 9, 2014, 9:37pm UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/5 "2014-04-09T21:37:58Z")

</div>

Just had a look, they dont simulate physics with the slider grips, they just calculate the position manually and clamp it. I was hoping to avoid doing this as the extra code seems unnecessary if a physics system is already in place.

---

<div class="post-metadata">

**Author:** ![Thumper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thumper](https://forums.unrealengine.com/u/Thumper)\
**Post date:** [May 17, 2014, 3:11am UTC](https://forums.unrealengine.com/t/how-do-i-constrain-a-components-physics-movement-to-a-single-axis-with-a-physics-constraint/280113/6 "2014-05-17T03:11:24Z")

</div>

I’m interested in the answer for this as well. Having something move on only one axis through forces and being able to create limits to the amount of movement on that axis, like -50 x, to 50 x
