General Question help with animation

stevcast

Addon Developer
Addon Developer
Joined
Jun 14, 2008
Messages
160
Reaction score
0
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:
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,609
Reaction score
2,330
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
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°
 

Loru

Retired Staff Member
Retired Staff
Addon Developer
Donator
Joined
Sep 30, 2008
Messages
3,731
Reaction score
6
Points
36
Location
Warsaw
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.
 

stevcast

Addon Developer
Addon Developer
Joined
Jun 14, 2008
Messages
160
Reaction score
0
Points
0
Thanks Guys!! I'll give this a try.
 
Top