Jump to content
Sign in to follow this  
ikerdo

door anim loop

Recommended Posts

I am trying to make a rotating door, but I dont know how to loop the animation. In model.cfg I have setup sourceAddress="loop"; so in buldozer it is ok.

But I don´t know how to setup the config.cpp to make it work. I need it to loop without any user action.

Edited by ikerdo

Share this post


Link to post
Share on other sites
I am trying to make a rotating door, but I dont know how to loop the animation. In model.cfg I have setup sourceAddress="loop"; so in buldozer it is ok.

But I don´t know how to setup the config.cpp to make it work. I need it to loop without any user action.

The easiest way actually doesn't require any special stuff in config.cpp, just use the model.cfg as You already do and add this:

sourceAddress="loop";
source = "time";
minValue = 0;
maxValue = 5; /// or any other value, this should be the period of turning the door
angle0 = 0;
angle1 = (rad 360); /// I expect You would like the door to make the full circle, or You may possibly make them turn just a portion of circle according to number of planes

I hope it helps :icon_twisted:

Share this post


Link to post
Share on other sites

Ok.Thanks a lot!!! that worked !

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×