# Physics constraint rotates when actor rotates

**URL:** <https://forums.unrealengine.com/t/physics-constraint-rotates-when-actor-rotates/381283>\
**Category:** World Creation\
**Tags:** physics-constraints, component-space, unreal-engine, Physics, Blueprint, question\
**Created:** [January 8, 2017, 8:32pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotates-when-actor-rotates/381283 "2017-01-08T20:32:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkoding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dkoding](https://forums.unrealengine.com/u/dkoding)\
**Post date:** [January 8, 2017, 8:32pm UTC](https://forums.unrealengine.com/t/physics-constraint-rotates-when-actor-rotates/381283/1 "2017-01-08T20:32:09Z")

</div>

I have discovered a problem with physics constraints.  
I create an actor with two static meshes, and create a physics constraint between them.

Then I set the Swing 1 motion to limited, and the Swing 1 limit to 45 degrees.  
To get the angle right, I modify the angular rotation offset X to 45.

I add this actor to the level, and everything looks OK.  
But if I rotate this actor - the physics constraint rotates in **world space** and not in **local space** as (think) it should.

This means the constraint behaves as it should when the actor is unrotated, but bugs out when rotated 90 degrees.

 ![121315-chesterror.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/7/b77c65b393c68450ff1dc78c20ae2de1a823fff2.jpeg)

How can I set the angular rotation so that it rotates in local space correctly? I was thinking about setting it in a construction script but that will not work on dynamic actors that rotate in-game.
