Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Finding complete 180 of angle, cant calculate angle, am i doing this right?

Asked by 5 years ago

Okay so i have a issue where im trying to find the opposite angle of a part so say a parts orientation is (0,25,0) how would i find the opposite angle and its not -25. Like a complete 180 turn. and math.rad(180) didnt work but i might have used it wrong. here is the line of code im struggling with.

P_HRP.Orientation = V3(E_ORI_X,math.rad(180),E_ORI_Z)

and V3 is just shorter for vector3 and the HRP and ORI is just for the parts and their orientations.

0
i could just be stupid and the answer is obvious but i cant see an answer XxTGLxX 7 — 5y
0
math.rad(180) would just convert it into radians, which would work for Cframe.Angles, but for Orientation, it is unnecessary, as it works for degrees theking48989987 2147 — 5y
0
Do you only want to rotate about the y-axis? chomboghai 2044 — 5y

Answer this question