You are on page 1of 1

#include <stdio.h> #include <math.h> #include "udf.

h" DEFINE_CG_MOTION(pitch, dt, vel, omega, time, dtime) { real ampl,omg,count; /* motion */ ampl = 0.7 ; /* amplitude of rotation in radians */ omg = 150; /* angular frequency */ omega [2] = ampl * sin (omg * time); } daft = (60 * (pi/180)) * 2*pi*0.2 * sin(2*pi*0.2 * time); alpha = 60 * cos(2*pi*0.2 * time); /* set omega */ omega[2] = daft;

You might also like