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.
gyroscopeI am here.Member, Sous Chef, PROPosts: 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). :-)
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.
gyroscopeI am here.Member, Sous Chef, PROPosts: 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.
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.
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
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
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.