Hi,
1/ For the rotating part, select it at the top of the edgebar, choose properties / IC’s and enter a speed in the appropriate cell : … omega (your rotation axis).
2/ For the other part, you need another part that is fixed in motion. Create a translational joint that allows a translation (select the moving part, then the ground part, and choose the location and direction using face(s) and/or edge(s)).
3/ RMB on that joint. Choose properties / motion tab. You have 2 options (option a is only for one stroke back and forth)
a)Choose Acceleration and step. Enter an initial velocity if wanted. In the bottom pane, choose initial value at 50mm/s2 (for example) and the final at -200mm/s2 for the starting time, choose about 1/2 of your simulation time for example; for the final time, enter the same time +.1s (to have an almost instant transition from 50 to -200)
b)Choose Velocity and harmonic. Enter at least an amplitude and a frequency
Harmonic : F(t)=A*sin(w*(time-t0)-j)+B
Var : A=amplitude (highest value either positive or negative), w=frequency (distance or angle covered in 1s), t0=offset time(where to start the simulation on the curve), j=phase shift (value in radians; slides the function along X axis), B=average value (slides the function along Y axis)
NB: I’m not sure how to use spline and Expression is not available.
4/ If necessary, hide the fixed (ground) part using a display configuration created outside of motion.
5/ Remove the gravity in motion options, choose the length of the simulation and run it. after, you can loop the avi in windows media player to get the continuous movement.
Fred