# Physics constraint rotation also rotates the default position of the bone

**URL:** <https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878>\
**Category:** World Creation\
**Tags:** PhAT, unreal-engine, constraint, Physics, door, question\
**Created:** [August 3, 2018, 10:44am UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878 "2018-08-03T10:44:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_DySands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_dysands/32/779237_2.png) [@\_DySands](https://forums.unrealengine.com/u/_DySands)\
**Post date:** [August 3, 2018, 10:44am UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/1 "2018-08-03T10:44:28Z")

</div>

I’ve been scratching my head around this issue for hours, what i have been trying to accomplish is get my car door to rotate using physx constraints but when the limit is set to for example 30, it goes 15 degrees into the car and 15 degrees the correct way.  
I found a way to fix this by rotating the constraint but this also rotates the entire doors default pose, so when the limit is then set to 0 the door is locked in an open position.

[https://prnt.sc/ke792e](https://prnt.sc/ke792e)  
[https://prnt.sc/ke79zx](https://prnt.sc/ke79zx)

Also discovered that in previous versions of PHAT you could use Alt rotate to keep the 0 position the same and only manipulate the angle of the constraint but this now only rotates the constraint in world axis.

I’m hoping someone knows a solution to this as I’ve been researching for a few hours with no luck and tried everything i could think off.

---

<div class="post-metadata">

**Author:** ![HarryHighDef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryHighDef](https://forums.unrealengine.com/u/HarryHighDef)\
**Post date:** [August 3, 2018, 3:50pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/2 "2018-08-03T15:50:19Z")

</div>

If you bring up the skeleton browser you should be able to rotate just the constraint. It shouldn’t bring the bone with it

---

<div class="post-metadata">

**Author:** ![\_DySands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_dysands/32/779237_2.png) [@\_DySands](https://forums.unrealengine.com/u/_DySands)\
**Post date:** [August 4, 2018, 12:54am UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/3 "2018-08-04T00:54:10Z")

</div>

Skeleton browser?  
It doesn’t rotate the bone just the constraint but when when the constraint limit is set to 0, the angle of the bone is rotated the same 30 degrees as i had rotated the constraint.

---

<div class="post-metadata">

**Author:** ![\_DySands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_dysands/32/779237_2.png) [@\_DySands](https://forums.unrealengine.com/u/_DySands)\
**Post date:** [August 7, 2018, 11:56am UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/4 "2018-08-07T11:56:08Z")

</div>

I have tried to compensate in the skeleton hierarchy by rotating the door (bone) 30 degrees inwards but it makes no difference to the default pose of the constraint.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cffdc04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cffdc04](https://forums.unrealengine.com/u/anonymous_user_6cffdc04)\
**Post date:** [April 25, 2019, 6:50pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/5 "2019-04-25T18:50:24Z")

</div>

I just had the same issue. Somewhere along the line, the information in [this video](https://www.youtube.com/watch?v=px8Hw7SbWdE) was reversed.

As of 4.21.2, the controls are as follows when rotating a joint in PhAT:

- LMB: Updates the direction of Swing 1, Swing 2, and Twist.
- Alt + LMB: Updates the position of the range for the axis you’re rotating on.

---

<div class="post-metadata">

**Author:** ![\_DySands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_dysands/32/779237_2.png) [@\_DySands](https://forums.unrealengine.com/u/_DySands)\
**Post date:** [October 28, 2019, 3:45pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/6 "2019-10-28T15:45:49Z")

</div>

A very delayed response but this is the exact solution, you’re a legend!

---

<div class="post-metadata">

**Author:** ![adamk570](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adamk570](https://forums.unrealengine.com/u/adamk570)\
**Post date:** [October 30, 2019, 10:27pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotation-also-rotates-the-default-position-of-the-bone/430878/7 "2019-10-30T22:27:21Z")

</div>

same! I have been struggling with this for hours.
