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.
@dangdongho6 : I come little late, lot of people have already explained everything to you, but here is another example :
[ANIM_SEQ_0] ; wheel rotation command
KEY= G ; you can define another key here (e.g : K, 1 ,2... etc...)
DURATION=2 ; (time in seconds) increase this value to slow down the rotation, decrease the value to increase the rotation
REPEAT=1 ; read the spacedraft4 doc : 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->…)
[ANIM_COMP_0] ; wheel rotation animation
SEQ=0 (same numero as "anim_seq_n)
GROUPS=3 ; group order number in your *.msh file
RANGE=(0,1) ; animation starts at begining (0) and finish at the end (1) if : (0,0.5) ends in the middle (not good for this example)
ROT_PNT=(0,0,0) ; coordinates of the rotation point (you have to look for the right coordinates)
ROT_AXIS=(1,0,0) ; x,y,z axes - here axis is "X" - you have to look for the right axis (if not orthogonal attention the axis-vector must be normalized : ex : (0.7453,0.2981,0.5962)
ANGLE=360 ; for rotate like a wheel (car, orbital station) this value must be 360 ° or a multiple (720 etc)
;PARENT= ; no use here (but if your wheel is attached to a moving element, it is useful, but needless to complicate things here ...) :lol:
If you have other questions, don't hesitate ... :tiphat: