Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do CFrame.Angles coordinates work?

So how do I get the exact coordinates for CFrame.Angles to script animations. In other words is there a better way to perhaps figure the coordinates out rather then just 'messing around' with the coordinates and that...

1 answer

✓ Accepted answer

CFrame.Angles is a function that takes three arguments, the rotation in radians for each of the three axes. What it does is take the arguments and transforms it into a rotation matrix that can be used for adding rotation to CFrames.

So say you write CFrame.Angles(math.rad(45), 0, 0). This would return a rotation matrix equivilant to a 45 degree rotation in the x-axis, and 0 degree rotations in both the y and z axes.

5 comments

0

Everytime I use CFrame.Angles on a shoulder of the Character the Arm gets teleported to the center of the Torso is there anyway to make it so that it animates from it's original position rather then going to the center of the Torso perhaps something else I can use?

0

You need to keep the position of the CFrame too, a la Shoulder.C0 = CFrame.new(Shoulder.C0.p) * CFrame.Angles(rx, ry, rz)

0

Thanks.

0

What about the :lerp?

0

What aboud it?

This discussion is preserved as it was. New answers, comments, and votes are closed.