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

How would I shift one value to other depending on angle?

Asked by 2 years ago
Edited 2 years ago

Lets say I have two values. a = 1.5 b = 3 I want to shift value "a" to value "b" using camera Y angle. Yangle(360) = a when Yangle(180) = b I've figured out how to find camera Y angle, but still haven't got how to use Yangle in order to shift between values, for now I only used simple math.

value = AngleY/180

it works quiet well, changing Y angle into 1 if Y angle is 0 or 2 if 360, but it only shifts between 1 and 2 counter clockwise, when I need it clockwise (or I want 90 to be 1 and 180 to be 2 as example), how could I acomplish that?

0
BRO COME ON 3 HOURS ALREADY SuAkihiro 94 — 2y

Answer this question