|
|
发表于 2011-3-16 13:05:30
|
显示全部楼层
回复 1# jxfsxjxfsx 的帖子
#include"udf.h"
DEFINE_CG_MOTION(rotate,dt,vel,omega,time,dtime)
{
real vel[ND_ND];
real w=1.0;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(vel,f,thread);
vel[1]=0.5*w*(cos(w*(time-1)));
}
end_f_loop(f,thread)
} |
|