#Explaination

1 messages · Page 1 of 1 (latest)

west flame
#

Could someone please explain to me what CFrame.Angles does? Thanks :)

harsh hearth
#

cframes consist of position and orientation cframe.angles returns the orientation in radians

west flame
#

srry but what is radians?

harsh hearth
#

yknow how a degree is 1/360th of a circle right

#

bc theres 360 degrees in a circle

west flame
#

yes

harsh hearth
#

a radian is the same thing but instead of having 360 degreees to a circle there are 2pi radians

#

so its just a way to measure an angle

west flame
#

hm

#

so

#

instead of a circle having 360 degrees in studio

#

it has 2 pi?

#

thats kinda how i understood it

harsh hearth
#

yeah pretty much its just like feet and meters in that they represent the same thing (distance), but the same distance will have a different number if you measure it with feet compared to meters

#

so like a half circle is 180 degrees, but it is also pi radians

#

and you can use math.rad and math.deg to convert between them in studio

west flame
#

oh so if there is a part and I was to read its orientation and translate it, I use..?

edgy bridgeBOT
#

studio** You are now Level 1! **studio

harsh hearth
#

orientation of parts is in degrees

#

orientation of cframe is in radians

#

all parts have cframes so you can use either, you just have to be consistent

#

degrees is better since its more precise radians has a lot of issues since pi is irrational

west flame
#

hm

#

well ok i atleast got it now

#

thanks man

#

i really appriciate it