# Set "Angular Rotation Offset" through BP

**URL:** <https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [July 18, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762 "2018-07-18T13:45:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [July 18, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/1 "2018-07-18T13:45:37Z")

</div>

Hi,

Quick question (I think): Is it possible to set “Angular Rotation Offset” through a ‘Set’ node in a BP? I can find the “Set Angular Swing 1Limit”, “Set Angular Swing 2Limit”, and “Set Angular Twist Limit”, but it seems there is no node available for the Angular Rotation Offset.

…or is there a creative name for this that I can’t seem to find?

🙂

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [July 19, 2018, 11:57am UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/2 "2018-07-19T11:57:38Z")

</div>

_bump_… does anyone have an idea if this is possible?

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [July 20, 2018, 5:10pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/3 "2018-07-20T17:10:31Z")

</div>

Sorry to bump this again… but I really need this to avoid have a gazillion copies of the BP in the project. Any ideas?

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [July 30, 2018, 8:36am UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/4 "2018-07-30T08:36:41Z")

</div>

So, my best guess is that this parameter is not accessible through any node. Now how would I go about requesting the developers to add it in one of the next releases?

---

<div class="post-metadata">

**Author:** ![ChipmunkCraft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChipmunkCraft](https://forums.unrealengine.com/u/ChipmunkCraft)\
**Post date:** [January 26, 2020, 9:45pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/5 "2020-01-26T21:45:29Z")

</div>

Apologize for the Necro on this but I need this exposed to blueprint as well and have some code changes to provide to expose Angular Rotation Offset in Blueprint for anyone who comes across this looking for a solution.

So here it is:

**ConstraintInstance.h start at line 361**

```auto

    /** Sets the Angular Rotation Offset
    * @param AngularRotationOffset New offset
    */
    void SetAngularRotationOffset(const FRotator InAngularRotationOffset)
    {
        ProfileInstance.AngularRotationOffset = InAngularRotationOffset;
        UpdateAngularRotationOffset();
    }

```

**PhysicsConstraintComponent.h start at line 265**

```auto

    /** Sets the Angular Twist Motion Type
    * @param AngularRotationOffset New Offset
    */
    UFUNCTION(BlueprintCallable, Category = "Physics|Components|PhysicsConstraint")
    void SetAngularRotationOffset(const FRotator AngularRotationOffset);

```

**PhysicsConstraintComponent.cpp start at line 654**

```auto

void UPhysicsConstraintComponent::SetAngularRotationOffset(const FRotator AngularRotationOffset)
{
    ConstraintInstance.SetAngularRotationOffset(AngularRotationOffset);
}

```

---

<div class="post-metadata">

**Author:** ![Cpt.Trips](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cpt.Trips](https://forums.unrealengine.com/u/Cpt.Trips)\
**Post date:** [April 20, 2020, 6:14pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/6 "2020-04-20T18:14:33Z")

</div>

Still not exposed by default?

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [April 23, 2020, 10:16am UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/7 "2020-04-23T10:16:11Z")

</div>

> [@Cpt.Trips](#):
>
> Still not exposed by default?

No… my understand is that it’s not possible to expose it by default for some structural reasons (it would have too much of an impact on performance)

---

<div class="post-metadata">

**Author:** ![Cpt.Trips](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cpt.Trips](https://forums.unrealengine.com/u/Cpt.Trips)\
**Post date:** [April 23, 2020, 3:16pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/8 "2020-04-23T15:16:16Z")

</div>

I figured out a workaround how to effectively change the offset at runtime, which allows me to switch door directions or make them swing either in a single or both directions:

 ![UE4PhysConstOffset.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/6/5655bd45b8104907ce31300d93db7036301f77f8.jpeg)  
Image: Two instances of the same Blueprint, the one on the right has no offset and will swing both ways, while the one on the left is only allowed to swing in one direction.  
Essential for me was to have the mesh remain at the same location so the Blueprint can be easily used as a drag&drop component for artists to place into other Actors and be able to reliably tell how the movement will behave.

The workaround is to apply an offset to the relative rotation of the mesh **before** constraining it, then reset that offset.

 ![UE4PhysConstOffset_BP.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/4/f49bbb9cfe7bc20f6a727bdb50b58e5da2ee187d.jpeg)

> [@Virtuality](#):
>
> my understand is that it’s not possible to expose it by default for some structural reasons (it would have too much of an impact on performance)

What is that performance assumption based on?

---

<div class="post-metadata">

**Author:** ![Macarmoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Macarmoni](https://forums.unrealengine.com/u/Macarmoni)\
**Post date:** [May 4, 2021, 8:07am UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/9 "2021-05-04T08:07:00Z")

</div>

hi ChipmunkCraft! This thread is very old but I’m curious how you managed to expose the AngularRotationOffset value. When I add these codes to their files I still can’t seem to expose the AngularRotationOffset via blueprint… Does the node maybe have a weird name I can’t find?

---

<div class="post-metadata">

**Author:** ![sandermann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sandermann/32/1157591_2.png) [@sandermann](https://forums.unrealengine.com/u/sandermann)\
**Post date:** [January 8, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/10 "2023-01-08T13:59:09Z")

</div>

Had the exact same problem. This solved it. Thanks for sharing. Have to say that this operation is to made not in the construction script otherwise it won’t work.

@Virtuality please set the solution from @Cpt.Trips as solution

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [February 21, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/11 "2023-02-21T16:05:57Z")

</div>

> [@sandermann](#):
>
> @Virtuality please set the solution from @Cpt.Trips as solution

This thread is so old it doesn’t have the solution button yet.. but it seems you’re right: it does appear to work!

---

<div class="post-metadata">

**Author:** ![WUG-Jonas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WUG-Jonas](https://forums.unrealengine.com/u/WUG-Jonas)\
**Post date:** [February 6, 2024, 10:33am UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/12 "2024-02-06T10:33:59Z")

</div>

Create a derived class from the **UPhysicsConstraintComponent**  
Add this in the public section of your .h file

```auto
UFUNCTION(BlueprintCallable, Category = "Physics|Components|PhysicsConstraint")
void SetAngularRotationOffset(const FRotator AngularRotationOffset);

UFUNCTION(BlueprintCallable, Category = "Physics|Components|PhysicsConstraint")
FRotator GetAngularRotationOffset();

```

Add this in your .cpp file

```auto
void UMyPhysicsConstraintComponent::SetAngularRotationOffset(const FRotator AngularRotationOffset)
{
	ConstraintInstance.AngularRotationOffset = AngularRotationOffset;
}

FRotator UMyPhysicsConstraintComponent::GetAngularRotationOffset()
{
	return ConstraintInstance.AngularRotationOffset;
}

```

---

<div class="post-metadata">

**Author:** ![Animbeast1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Animbeast1](https://forums.unrealengine.com/u/Animbeast1)\
**Post date:** [June 28, 2024, 5:16pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/13 "2024-06-28T17:16:30Z")

</div>

> [@Modify Angular Rotation Offset at Runtime](https://forums.unrealengine.com/t/modify-angular-rotation-offset-at-runtime/304164/8):
>
> I have a workaround for it. Create a scene component use it to change the rotation of the physics constraint reference frame not the actual physics constraint. Here Constraint Ref Frame is a scene component. “Frame” is used to reverse the z axis.

---

<div class="post-metadata">

**Author:** ![eckhartpowers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eckhartpowers](https://forums.unrealengine.com/u/eckhartpowers)\
**Post date:** [March 26, 2025, 2:41pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/14 "2025-03-26T14:41:57Z")

</div>

I created a class with your scripts, and it compiles but I can’t add it anywhere. Appreciate any suggestions to get it working.

---

<div class="post-metadata">

**Author:** ![Jaffekala1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaffekala1](https://forums.unrealengine.com/u/Jaffekala1)\
**Post date:** [May 18, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/set-angular-rotation-offset-through-bp/113762/15 "2025-05-18T13:25:14Z")

</div>

Sounds like you forgot to make it blueprintable  
Make sure the UCLASS() macro declares the component as blueprintable. You can simply copy this so it looks the same in the blueprint as the original PhysicsConstraintComponent

In short, add this into the .h file:

UCLASS(ClassGroup=Physics, meta=(BlueprintSpawnableComponent), HideCategories=(Activation,“Components|Activation”, Physics, Mobility), ShowCategories=(“Physics|Components|PhysicsConstraint”))
