Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is CFrame.fromEulerAnglesXYZ() and what does it do?

Asked by 4 years ago

I cant find any tutorials on it so it would be great if someone could tell me what it does.

0
https://developer.roblox.com/en-us/api-reference/datatype/CFrame Creates a rotated CFrame using angles (rx, ry, rz) in radians. Rotations are applied in Z, Y, X order. MrLonely1221 701 — 4y
0
It's no different from CFrame.Angles() as it behaves the same way. CFrame.Angles() also takes radian values. DeceptiveCaster 3761 — 4y

1 answer

Log in to vote
1
Answered by
Alphexus 498 Moderation Voter
4 years ago

CFrame.fromEulerAnglesXYZ

CFrame.fromEulerAnglesXYZ is a constructor for CFrame. It's used to manipulate the rotation of an object. It takes in 3 parameters(X,Y,Z) and each of them are required to be in radians. You can easily convert degrees to radians by using math.rad(). It's also the same as CFrame.fromAngles.

Ad

Answer this question