How would i be able to compare vectors?

not entirely sure if i get it and also having trouble testing it because if i try moving a part the weld just breaks

but is :ToObjectSpace like :PointToObjectSpace but its in a cframe that has both position and rotation?
mean using a print it looks they have nearly the same position output

while task.wait() do
	print(script.Parent.CFrame:PointToObjectSpace(workspace["2354235"].Position))
	print(script.Parent.CFrame:ToObjectSpace(workspace["2354235"].CFrame))
	print((script.Parent.Size/2),-(script.Parent.Size/2))
end



(the white square is the long numbered one)

Roblox’s physics engine handles welds differently than when you move them in studio. My bad.
If you’re testing in studio it would be the same if you grouped them as a Model and then set the primaryPart to one of the parts and moved/rotated the model.
image



Yes that’s correct. It does look like 1st and 2nd values of the position are slightly less precise in ToObjectSpace, but they both say 0 for the 3rd value.

1 Like

Also if you do this, you can say:

Model:SetPrimaryPartCFrame(CFrame.new())

And it will set the PrimaryPart position and rotation to 0,0,0 and 0,0,0.
And then the rotation and position of the other parts inside the model would be the result of:

Model.PrimaryPart.CFrame:ToObjectSpace(Model.OtherPart.CFrame)
1 Like

took a little long to get back but overall i understand! :smiley:
Thanks for all the help :+1:

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