Rotation Question

KC_GamesKC_Games Member, PRO Posts: 86

I have a ring but want it to rotate in certain increments. For example, I would like the ring to rotate to degrees of 0, 10, 20, 30, 40... up to 360 and don't want it to ever to rotate at something in between like 12. Is this possible?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited June 2014

    Timer

    Every X seconds

    Change Rotation to Rotaion + 10

  • KC_GamesKC_Games Member, PRO Posts: 86

    Thanks Socks. I tried using a timer and rotate to angle, but it was too slow. I used a timer of .01 and had it rotate 5.625 degrees at a speed of 1000, but I don't think you can go less for the timer.

  • SocksSocks London, UK.Member Posts: 12,822

    @unko_dropper said:
    Thanks Socks. I tried using a timer and rotate to angle, but it was too slow. I used a timer of .01 and had it rotate 5.625 degrees at a speed of 1000, but I don't think you can go less for the timer.

    Like I say I'd simply move the rotation on 10° every X amount of seconds.

    Demo: https://www.mediafire.com/?zzufi9c78trrm79

    Unless you mean that you want to rotate (move instead of change) to these quantized values ? (In which case you will, of course, pass through the 12° you don't want it to).

    ?

  • KC_GamesKC_Games Member, PRO Posts: 86

    Thanks so much Socks. I tried doing that with your project but its still too slow. I need it to go much faster for my game. Here is your code with my art. I can't get it to rotate any faster than this. Any ideas?
    https://www.dropbox.com/sh/n00mnoi2iebxjpn/AAAY7hVNAb3yGSj7TkgaaPhka

  • SocksSocks London, UK.Member Posts: 12,822

    @unko_dropper said:
    Thanks so much Socks. I tried doing that with your project but its still too slow. I need it to go much faster for my game. Here is your code with my art. I can't get it to rotate any faster than this. Any ideas?

    I'm lost, I don't know what you are trying to achieve.

Sign In or Register to comment.