So I have an object that rotates 360 degrees. When it is in a range from 0-44 (a 45 degree arc) the value of the object is set to 1, when it is in a range from 45-90 (another 45 degree arc) the value is set to 2 etc all the way around to complete the circles 360 degrees. Now I can do this with a bunch of events using angle is > than A + angle is lower than B - set value to C.. but it seems stupid to have like 8 events to do this..
For you mathematically minded people Is there an equation I can use that finds the current range the object is facing (dividing the 360 degrees into 8 equal peices) ?? Thanks!