General Question help with animation

stevcast

Addon Developer
Addon Developer
Joined
Jun 14, 2008
Messages
160
Reaction score
1
Points
0
I am currently working on a ship, using Spacecraft3, and I want to animate a gun turret to rotate 85 degrees to the right, then rotate 85 degrees to the left and to continuously perform this operation without having to press the button. The other turrets rotate 360 degrees on a continuous basis until you press the button. Is this possible, and if so, what would the commands be.

Thanks,

stevcast :thumbup:
 
You can use the interval parameters of the animation to produce this loop I think.

Like
0 - 0.5 : Rotate right by 85°
0.5 - 1.0: Rotate left by 85°
 
From spacecraft3.pdf in [ANIM_SEQ_x]:

Code:
REPEAT : repeat mode (0=no repeat (default), 1=repeat by restarting cycle (0->1;0->1;0-
>…), 2=repeat by reversing cycle (0->1->0->1->0->…)

So you can define it for example that way (I'm assuming you want turret to stay a bit in far and middle position).

Make 4 animation components using REPEAT=1 in your sequence definition:
- one from 0.2 to 0.22 rotating left 85 deg.
- one from 0.28 to 0.48 rotating right 85 deg.
- one from 0.52 to 0.72 rotating right 85 deg.
- one from 0.78 to 0.98 rotating left 85 deg.
 
Thanks Guys!! I'll give this a try.
 
Back
Top