|
楼主 |
发表于 2017-5-25 09:38:16
|
显示全部楼层
DEFINE_SDOF_PROPERTIES(falling_pyramid, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 0.15;
prop[SDOF_ZERO_ROT_Z] = TRUE;
prop[SDOF_ZERO_TRANS_X] = TRUE;
printf ("\n2d_falling_pyramid: Updated 6DOF properties");
}
UDF是这样的,之所以限定Z的转动和X的位移是因为,如果不限定,锥体会发生转动
|
|