how to work out specific rotation
I'm making a small mobile game around diving for a game jam. the game uses your phone gyro to tilt the character so you can spin him back and forth. I'm having a bit of a problem trying to work out how to count spins for flips and also work out when he is facing down so I can switch graphics to dive graphics
asked May 09 '18 at 09:31 AM in Blueprint Scripting
For the Record i'm not a bald man.
however i did work it out counting rotations i used the rotation rate to add to a variable which counted up to 360 then would set flips to 1 and reset to 0 or same in reverse.
and as for the flipping i had to use X as well as Y so when ever X was between -10m and 10 and Y was > 170 dive was true,
hope this helps for anyone else
answered Aug 22 '18 at 08:27 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here