Few question about CFrame.Angles() and radians and CFrame.new()

Hello!

So, It’s really difficult to me learning about CFrame angles because:

I’m bad with math lol.

And I speak spanish, and sometimes examples people give me make me look like: image

So I was wondering, what’s CFrame.Angles() ?Why is it soooo used, is it difficult to understand?

My main questions:

So, math.rad() converts degrees into radians, but, I don’t get what is radians ( sorry lol)

Do I need to learn about trigonometry to use CFrame.angles or CFrame?

How to calculate or, is it hard? Example, .CFrame * Cframe.Angles(0, math.rad(90), 0)

About CFrame

How to create a CFrame?

What goes first on CFrame.new(orientation, position) or CFrame.new(position, orientation)

Thanks :heart:
There’s no need for you answer all, maybe, some answers some and others the others!

2 Likes

Alrighty so radians are basically the more common way of dealing with angles in higher level mathematics. The reason for this relates to something known as the unit circle.
image
As you can see, 2pi radians is = to 360 degrees. When you do math.rad(), it takes the degree measurement, divides it by 180 degrees, and multiplies it with pi. So 360 degrees would be 360/180*pi = 2pi radians. CFrame.Angles() is the way to multiple a CFrame object with the given angles of the x,y,z axis to then rotate the object. You can learn more about multiplying CFrames here: CFrame Math Operations

In regards to CFrame.new(), it could be several things, as the CFrame class has a ton of overriding constructors. You could do a blank CFrame, or one at a specific position, or one with each individual coordinate. The one you mentioned is actually not orientation exactly. The first value is your position as a Vector3, but the second is a second Vector3 that represents another position in which the object will face. So CFrame.new(Vector3.new(0,0,0), Vector3.new(1,2,3)) will be a CFrame at the origin (0,0,0) facing the coordinates 1,2,3. I hope this helps!

4 Likes

An easier way to comprehend radians is to think of it as a unit to measure angles - which it basically is - that can be converted to degrees and vice versa. As @MallocByte mentioned, it relates to the unit circle.

1 Like