# StaticMesh sockets import from FBX with incorrect yaw

**URL:** <https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458>\
**Category:** Pipeline & Plugins\
**Tags:** sockets, unreal-engine, FBX, import, bug-report, question\
**Created:** [April 25, 2016, 8:34pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458 "2016-04-25T20:34:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KGist](https://forums.unrealengine.com/u/KGist)\
**Post date:** [April 25, 2016, 8:34pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/1 "2016-04-25T20:34:57Z")

</div>

When importing a StaticMesh from FBX, the sockets in the model have the wrong yaw. We are creating sockets in the model using the SOCKET\_\_xx naming convention. The sockets appear in the StaticMesh SocketManager, and the Yaw (Z Rotation) matches numerically, but is mirrored from the correct yaw around the X-axis. This appears to be a Right-Handed-to-Left-Handed coordinate conversion error in the FBX StaticMesh Import process. We have seen the same results when exporting models from both Max and Blender.

We can currently work around the issue by negating the Yaw value of the Socket, reversing the mirror effect.

Thanks,  
-Kelson

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [April 27, 2016, 8:40pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/2 "2016-04-27T20:40:05Z")

</div>

Hi Kelson,

What modeling software are you using? Also, would you be willing to provide me with a basic example asset for this bug as I’m unable to reproduce this locally?

-.

---

<div class="post-metadata">

**Author:** ![KGist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KGist](https://forums.unrealengine.com/u/KGist)\
**Post date:** [April 28, 2016, 4:18pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/3 "2016-04-28T16:18:50Z")

</div>

Hi ,

We are getting the same results from both Max and Blender.

In the image below, the ArrowComponent uses the imported socket transform, while the mesh arrow was aligned to the socket transform in Max.

![88765-sockettest.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/c/7dcb76f6c015c7a139ad6806f237cfefbedd0a17.png)

This image shows the incorrect socket transform in the StaticMesh Editor.

![88766-sockettest2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/6/7d6cac64c9bf3fb754da2aaf6ef77023e79dcd49.png)

I have attached a zip file with the Max source file, exported FBX, and a project with the imported FBX and a quick blueprint and level that were used to generate the images.

Thanks,  
-Kelson

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [May 19, 2016, 3:56pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/4 "2016-05-19T15:56:07Z")

</div>

Hey Kelson,

Apologies for the delay in response, but it looks like my answer to this question never posted. I had entered this as UE-30094 a few weeks ago. Thanks for reporting it!!

-.

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [July 26, 2016, 12:22pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/5 "2016-07-26T12:22:43Z")

</div>

If you compiled from source:

```
..\Engine\Source\Editor\UnrealEd\Private\Fbx\FbxStaticMeshImport.cpp line 1456 

```

Adjust that line to make multiplication of flipped axis by -1 Duno if that would be fix but I might call it hack 🙂

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [July 26, 2016, 12:27pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/6 "2016-07-26T12:27:42Z")

</div>

Hi there , check my answer, might help sort it out…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [July 26, 2016, 3:17pm UTC](https://forums.unrealengine.com/t/staticmesh-sockets-import-from-fbx-with-incorrect-yaw/355458/7 "2016-07-26T15:17:23Z")

</div>

Hey Vertex Soup,

Thanks, but this is already fixed for 4.13, but that’s good for anybody looking to fix it in 4.12 source.

-.
