# Constraint linear offset

**URL:** <https://forums.unrealengine.com/t/constraint-linear-offset/363664>\
**Category:** World Creation\
**Tags:** Constraints, limit, offset, unreal-engine, Physics, Blueprint, question\
**Created:** [July 11, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/constraint-linear-offset/363664 "2016-07-11T16:10:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_34882162](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_34882162](https://forums.unrealengine.com/u/anonymous_user_34882162)\
**Post date:** [July 11, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/constraint-linear-offset/363664/1 "2016-07-11T16:10:22Z")

</div>

I have a constraint with limited linear motion. I need to find out how far the constrained object has traveled away from it’s target position. I know how to get the angular offsets(‘Get Current Twist’, ‘Get Current Swing1’…), but I don’t know how to do it for linear offset. Is it possible to do it in UE4?

---

<div class="post-metadata">

**Author:** ![Arty-McLabin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arty-mclabin/32/1012076_2.png) [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Post date:** [January 26, 2019, 1:07pm UTC](https://forums.unrealengine.com/t/constraint-linear-offset/363664/2 "2019-01-26T13:07:16Z")

</div>

Physics Constraint API sucks, but you can do it your way:  
measure the distance vector between the 2 constrained objects at the beginning of time, and then compare it to the distance at the moment u care about. delta of these two vectors is pretty much the linear offset

p.s. YES I KNOW IT HAVE BEEN 3 YEARS

---

<div class="post-metadata">

**Author:** ![UnrealHorrorDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealHorrorDev](https://forums.unrealengine.com/u/UnrealHorrorDev)\
**Post date:** [May 8, 2022, 4:55pm UTC](https://forums.unrealengine.com/t/constraint-linear-offset/363664/3 "2022-05-08T16:55:51Z")

</div>

If anyone finds this Linear offset is basically same as “SetConstraintReferencePosition”. For example my linear limit is 20. and I want draw to start at one end. Here you set it to linear limit /2.
