How to make actor to keep rotating

Falcon80Falcon80 Member Posts: 42
edited November -1 in Working with GS (Mac)
How can i achieve this effect? I tried to use interpolate on the actor's rotation attribute but it will only rotate it for one cycle (0 - 359).

Comments

  • Falcon80Falcon80 Member Posts: 42
    OK. I found out how to do it. I should interpolate the rotation attribute from 0 to 360 and set a rule to start the interpolation when rotation = 0.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Falcon80; although the Interpolate behaviour is excellent and useful for many things, it sounds like, in this instance, that you're complicating the Rules unecessarily. By the sound of what you want, you only need to use the Rotate Behaviour (with a Timer, if needed, i.e After so many seconds, or triggered by a boolean attribute). :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • Falcon80Falcon80 Member Posts: 42
    I need the actor to make a complete 360 degrees rotation in every 10 seconds which means 36 degrees every second. If I use the timer, I may not be able to achieve a smooth animation like what the interpolation can give me. In any case, I will give it a try later. Thanks. =)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I see what you're after: very precise! I only suggested the Timer if you needed it to start after so many seconds, that was all.

    If I remember correctly, velocity = distance divided by time, so if you put 36 in the speed of the Rotate behaviour, you should get each complete rotation every ten seconds as you want.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • Falcon80Falcon80 Member Posts: 42
    gyroscope said:
    I see what you're after: very precise! I only suggested the Timer if you needed it to start after so many seconds, that was all.

    If I remember correctly, velocity = distance divided by time, so if you put 36 in the speed of the Rotate behaviour, you should get each complete rotation every ten seconds as you want.

    :-)

    Thanks gyroscope. I think the Rotate behaviour is what I need. I misunderstood your earlier post. I thought you were suggesting to change the rotation attribute with the timer.

    However, there is a small issue now. The rotate behavior doesn't seem to be working. The actor remains static and not rotating. It must be a mistake I made somewhere.
  • Falcon80Falcon80 Member Posts: 42
    Finally it is working. Forgot to set the movable boolean to true.
Sign In or Register to comment.