大神们,求助!!!UDF错在哪里(公转)
浏览:1050 回答:4
如图所示,要实现的运动形式:以外管中心(外管中心为坐标原点)为旋转中心,内管以一定偏心距公转 ,UDF如下。区域预览,运动形式不对,求大神们帮帮忙,错在哪里了呢,怎么修改,万分感谢!!!!!!!
#include "stdio.h"
#include "udf.h"
#define E 0.01445
#define base 104.72
DEFINE_CG_MOTION(move,dt,cg_vel,cg_omega,time,dtime)
{
NV_S(cg_vel,=,0.0);
NV_S(cg_omega,=,0.0);
cg_vel[0]=E*cos(base*time);
cg_vel[1]=E*sin(base*time);
cg_vel[2]=0;
}