Can someone explain me how cframe works?

Hi,
As you can see in the title i want to know how Cframe works

i know that its the position and but i don’t understand the angles of a cframe

Developer hub does’nt help me at all

Thanks for reading :smiley:

What do you mean

30char

Angles

Are Just rotation

Have
you
searched?

2 Likes

Coordinate Frame

Method of movement and positioning, similiar to Vector3 but essentially with a whole bunch of cool features.

1 Like

CFrame (coordinate frame) is a more complex version of Position that includes both Position and Rotation. For example, if you have Part and PartB and you set the position of PartA to PartB, they will both be in the same position but they may still have different rotation/direction they are facing.

Let’s try again with a better example, a tree.
Imagine that you have TreeA and TreeB (same model with different names).
TreeA has a natural position/direction
with its trunk below and the leaves above.
While TreeB has fallen down.
So you want to make TreeB on its roots again, you don’t use Position, because if you set TreeB position to TreeA position, then it goes to TreeA without being on its roots because you only change the position and not the rotation/orientation of TreeB.

If you use CFrame instead, TreeB will be on its root and we will get our oxygen again, remember! stay home stay safe don’t go out chopping trees we want our mother earth to safe

2 Likes