Determine Rotation

jamie_cjamie_c ImagineLabs.rocksMember, PRO Posts: 5,772

I have a rolling object in my game that I want to spawn a particle effect every time it rolls to 0° (each full rotation). I was thinking it would be as simple as checking the Rotation Value for the actor but this keeps going past 360° as it rolls and does not loop around from 360 to 0 and start over. Is there a calculation to determine when the rotation has 'looped' back to 0? (I'm no math wiz I'm afraid...) :(

Comments

Sign In or Register to comment.