Simple code for animating rotators and pistons that make a single movement during retraction and extension. All rotator and piston speeds at 100%. lerp(EXT_INPUT, RET_INPUT, inverselerp(FULL_EXT_TIME, FULL_RET_TIME, smooth(GearDown?0:ANIM_TIME,1)) EXT_INPUT: rotator input when fully extended (usually 0) RET_INPUT: rotator input when fully retracted FULL_EXT_TIME: time of starting the retracting motion FULL_RET_TIME: time of ending the retracting motion ANIM_TIME: total time you choose for the entire gear animation (same for all gear parts)
Yes there is. Bur only by using funky trees (It hase some time based functions) But to give you more information I would need to know more. Do you really want to retract it after a certain amount of time no matter what??
Simple code for animating rotators and pistons that make a single movement during retraction and extension. All rotator and piston speeds at 100%.
lerp(EXT_INPUT, RET_INPUT, inverselerp(FULL_EXT_TIME, FULL_RET_TIME, smooth(GearDown?0:ANIM_TIME,1))
EXT_INPUT
: rotator input when fully extended (usually 0)RET_INPUT
: rotator input when fully retractedFULL_EXT_TIME
: time of starting the retracting motionFULL_RET_TIME
: time of ending the retracting motionANIM_TIME
: total time you choose for the entire gear animation (same for all gear parts)@DankeOlli I know some basic funky trees.
Yes there is. Bur only by using funky trees (It hase some time based functions) But to give you more information I would need to know more. Do you really want to retract it after a certain amount of time no matter what??