Rotate a mesh around a socket/attach point?

Hi,

I’m trying to rotate a mesh (basically just open a boot lid of a car), but not around his pivot point but around of one of his sockets/attach points. Phew, seems like rocket science. I tried to do it myself the last hour, but without success:

I tried it with this approach here (from How to rotate around an arbitrary point? - Community & Industry Discussion - Epic Developer Community Forums):

This is my current test setup:



But that doesn’t work, either (my mesh is far away from the desired end position)

Yes, I kind of suck at math, as you can see. :wink:

You can create empty SceneComponent (aka Transform) with pivot point in rotationCenter and add your staticMeshComponent as a child. So when u rotate parent scene around pivot - your Mesh will rotate as you expected

Hi Detech,

Sometimes I love this forum. And I love you. :slight_smile:
Many, many thanks, that worked like a charm!

(Sometimes I just miss the wood for the trees, it seems)

Could you please convert your comment in an answer so I can set this to resolved?

1 Like