Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the difference between toObjectSpace and pointToObjectSpace?

print(game.Workspace.Part.CFrame:pointToObjectSpace(game.Workspace.BasePlate.Position))
print(game.Workspace.Part.CFrame:toObjectSpace(game.Workspace.BasePlate.CFrame).p)
--These both print the same thing.

1 answer

✓ Accepted answer

Yes there is a difference, they will be the same thing because it's world coordinates, HOWEVER, one is Vector3 and one is CFrame, so their type is different.

More about them: http://wiki.roblox.com/index.php?title=CFrame#Methods

Please give me a reputation point if I answered your question,

1 comment

0

The CFrame one preserves rotation/orientatio; the Vector3 one does not have any orientation information to preserve / report

This discussion is preserved as it was. New answers, comments, and votes are closed.