I’ve run into a very odd scripting error. This is just a very basic script I’ve made to show it:
local original_angles = Angle(10,10,10) local angles_backup = Angle(10,10,10) local new_angles = original_angles new_angles:RotateAroundAxis(new_angles:Forward(), 20) MsgN("Backup: "..tostring(angles_backup)) MsgN("Original: "..tostring(original_angles)) MsgN("New: "..tostring(new_angles))
And the odd output of this is:
As you can see, RotateAroundAxis has changed the Original Angle as well, even though I called it on the New Angle
Can anyone explain or help me with this?