# "AttachToComponent" inverts scale when it's not supposed to

**URL:** <https://forums.unrealengine.com/t/attachtocomponent-inverts-scale-when-its-not-supposed-to/392064>\
**Category:** Character & Animation\
**Tags:** sockets, attach-to-socket, attach-to-component, vr-template, unreal-engine, scale, question\
**Created:** [April 27, 2017, 3:13pm UTC](https://forums.unrealengine.com/t/attachtocomponent-inverts-scale-when-its-not-supposed-to/392064 "2017-04-27T15:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaiEngelke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiEngelke](https://forums.unrealengine.com/u/KaiEngelke)\
**Post date:** [April 27, 2017, 3:13pm UTC](https://forums.unrealengine.com/t/attachtocomponent-inverts-scale-when-its-not-supposed-to/392064/1 "2017-04-27T15:13:30Z")

</div>

One of my motion controller meshes scale is inverted on the Y axis just like in the VR template. I need to attach a 3D widget to a socket on the mesh.  
When using “AttachToComponent” with Location Rule: “Snap to target” and Rotation and Scale: “Keep Relative”, the widgets scale gets inverted. Is this the intended behavior? I expected it only to do that if scale snapping was enabled.  
Any Ideas?

---

<div class="post-metadata">

**Author:** ![Benergy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Benergy](https://forums.unrealengine.com/u/Benergy)\
**Post date:** [April 27, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/attachtocomponent-inverts-scale-when-its-not-supposed-to/392064/2 "2017-04-27T16:15:47Z")

</div>

I looked into the source code and the “Keep Relative” option just leaves the location/rotation/scale as it is. But this way the _world_ transform ob the actor becomes suddenly _relative_ when being attached. So in order to keep the scale, use"Keep World".
