ode.cpp.diff
来自「ODE v0.8 很好用的多平台几何物理模拟库源代码,内含多個示例」· DIFF 代码 · 共 29 行
DIFF
29 行
212,230d211< /******************** breakable joint contribution ***********************/< dxJoint* nextJ;< if (!world->firstjoint)< nextJ = 0;< else< nextJ = (dxJoint*)world->firstjoint->next;< for (j=world->firstjoint; j; j=nextJ) {< nextJ = (dxJoint*)j->next;< // check if joint is breakable and broken< if (j->breakInfo && j->breakInfo->flags & dJOINT_BROKEN) {< // detach (break) the joint< dJointAttach (j, 0, 0);< // call the callback function if it is set< if (j->breakInfo->callback) j->breakInfo->callback (j);< // finally destroy the joint if the dJOINT_DELETE_ON_BREAK is set< if (j->breakInfo->flags & dJOINT_DELETE_ON_BREAK) dJointDestroy (j);< }< }< /*************************************************************************/931,933d911< /******************** breakable joint contribution ***********************/< j->breakInfo = 0;< /*************************************************************************/1011,1013d988< /******************** breakable joint contribution ***********************/< if (j->breakInfo) delete j->breakInfo;< /*************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?