You can write your topic however you want, but you need to answer these questions:
I want to make these two parts connect by their attachments that are inside them. I want to achieve this by moving the whole model. Preferrably with PivotTo()
The issue is that I can’t seem to figure out how to do it properly?
So far, I tried this solution: Moving a part to another part based on attachment
but it didn’t work well for me. If anyone could please help, I would really appreciate it.
1 Like
kalabgs
(FartFella)
March 10, 2024, 8:33pm
#2
Do you care about the attachment orientation or only their position?
position only for now, although it would be nice if rotation was supported too
i want to connect model 2 to model 1 by their respective attachments
ok i am hopefully bumping this so someone can see this
ok this would hopefully be my last bump
SkrubDaNub
(ComradeSkrub)
March 27, 2024, 10:37pm
#7
okay. If you only care about position here’s what you should do:
Get the offset from the attachment to their parent part.
Now add the offset to the parent part position. Now you have the attachment’s world position.
Do the same for the other part.
Get the difference in position for the two world positions you’ve just calculated.
Move one of the parts by that difference.
also reminder:
A->B = B-A
where A is the first position and B is where you want to go.
alright ill try this when i get the chance, thank you
thanks a lot, this helped me greatly,
system
(system)
Closed
April 11, 2024, 2:50pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.