I searched on the devforum how to use :ToObjectSpace() and :ToWorldSpace(). and all of them werent clear at all i dont understand how both of these things work neither do i know how to use them or what they even do. anything is helpful!
i think these two are relatives CFrame position
what does relative mean?. Since in the docs it says CFrame + cf why do we use it if we can do that???. what is it used for though?. so im really confused. thanks so much for help
Aright let me break this one by one
so ToWorldSpace its basically a center of world
write this code and see what happens
print(game.workspace.Part.CFrame:ToWorldSpace())
and ToObjectSpace prints this and see what happens:
print(game.workspace.Part.CFrame:ToObjectSpace())
make sure to insert the object to referencing
if you have any questions just ask me
They are the exact same thing why??? (execpt the toworldspace isnt negative)
Use google… please…
i have seen the second one but didnt understand. the upper one made me understand it but how would this be used???
It can be use in several ways. Too many to be exact. You will know more as you progress in coding. Most use cases are in joint manipulations.
For example:
You can use CFrame:ToObjectSpace to make the players arm go to a specific point in world space.
Can they be used to make a part rotate around its edge?. also thanks so much for help
Hm… depends on your method. Not really though.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.