我用DEFINE_CG_MOTION写了个UDF
但是网格动不了,大家帮我看看怎么回事#include "udf.h"
DEFINE_CG_MOTION(movewall,dt,vel,omega,time,dtime)
{
Thread *t=DT_THREAD(dt);
NV_S(vel,=,0.0);
NV_S(omega,=,0.0);
if(!Data_Valid_P())
return;
/* vel=cos(time+1.57);*/
/* vel=sin(time+1.57);*/
vel=1.0;
} if(!Data_Valid_P())
要计算的时候才能出来了 楼主的动起来乐吗?
我和你的udf程序很象
页:
[1]