How to maintain relative CFrame of a part

When I set the CFrame of a certain part A I want to set the CFrame of a different part B on the surface of part A such that it maintains the same relative orientation, how would I do this?

2 Likes

You can weld both of them together with WeldConstraints.

1 Like

This is clever, but when I set the CFrame using a script it doesn’t work.

1 Like

I made a post a while ago on how to use CFrame:Inverse, there’s a section at the end that explains how to make a relative CFrame offset:

Hopefully that answers your question.

3 Likes

Thank you so much, if you don’t mind could you run through the linear algebra quickly?

1 Like

Personally, I don’t know anything about the calculations behind CFrame operations, I only know how to use them.

I know EgoMoose made some resources on how CFrames work, if that helps:

I recommend you search the devforums for other resources on CFrames.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.