Im making a head rotation with lerp for smoothness for my skinned rig,
but I encountered a problem i’ve been trying to fix for ages.
Because, I can’t merge the two together. I’ve tried converting the orientation to cframe.angles, cframe.fromorientation, or tried making a preview bone. But all possible solutions resulted in weird bugs or weird rotation.
Is there a possible way to merge these two?
bone.WorldCFrame = CFrame.new(bone.WorldCFrame.Position, (pos * CFrame.new(0,0, -9e9)).Position)
local X_C, Y_C, Z_C = math.clamp(bone.Orientation.X, -20, 20), math.clamp(bone.Orientation.Y, -50, 50), math.clamp(bone.Orientation.Z, -20, 20)
--Vector3.new(bone.Orientation.X, bone.Orientation.Y, bone.Orientation.Z)
bone.Orientation = Vector3.new(X_C, Y_C, Z_C)