So I'm rotating parts within 45 degree angles using math.pi, I got the first three rotations

Part.CFrame = CFrame,new(1,1,1) * CFrame.Angles(0, math.pi*1, 0) --no rotation

Part.CFrame = CFrame,new(1,1,1) * CFrame.Angles(0, math.pi*0.5, 0) --quarter rotation

Part.CFrame = CFrame,new(1,1,1) * CFrame.Angles(0, math.pi*2, 0) --full 180 rotation

Part.CFrame = CFrame,new(1,1,1) * CFrame.Angles(0, math.pi*4, 0) --has no effect

I can't seem to find the number to multiply for that 3 quarter rotation? Can someone clarify this for me?

4 comments

1

you could just rotate the part based on the relative rotation of the part :P

1

and FYI, pi radians is 180 degrees

0

oh tru

0

You can also just use math.rad instead of using radians, it's a lot cleaner and easier to read.