I’m wanting to rotate a part on an absolute axis, not on the parts axis. I’m reading something about Euler Angles but I’m not understanding how to use it.
By multiplying the world cframe first, you essentially get the result you are looking for.
part.CFrame = CFrame.Angles(0,0,0) * part.CFrame
If you also want to keep the object in the same position, you can rotate it using it’s position as the axis point.
For maintaining position:
local adjustmentCFrame = CFrame.Angles(0,0,0)
part.CFrame = CFrame.new(part.Position) * adjustmentCFrame * (part.CFrame - part.Position)
7 Likes
Works perfect, thanks so much!
1 Like