GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Rotation not working?

kjflukekjfluke Posts: 23Member, PRO

I am using a simple spinning wheel mechanic in a prototype for a game. Pretty straight forward. I am calculating the result of the spin by the angle range of the actor. (if rotation > 30 and < 180 change attribute...) The problem is that after one complete rotation, the angle of rotation is registering higher and higher rather than starting over at 0. I could have it reset to 0 at 360, but that might make it choppy and I feel like I am maybe just missing something. How can I make the rotation give me an angle between 0 and 360 only?

Comments

Sign In or Register to comment.