
这是ode物理引擎中的关节类型和图例
对于关节类型上图是很直观的了
1.球窝关节(Ball Socket)

2.合页关节(Hinge)

3.插销关节(Slider)

4.万向轮关节(Univeersal)

5.Hinge2关节

6.PR关节

PR关节即A prismatic and rotoide joint
是插销关节和荷叶关节的组合形式
7.PU关节
PU关节即A prismatic-Universal joint (JointPU)
他是插销关节和万向轮关节的组合形式

8.Piston joint 关节
Piston joint 关节类似于插销关节但是她可以绕轴转动

9.接触面关节
物理受重力落体过程中就需要使用到接触面关节


10.A Motor关节
该关节可以控制对象之间的相对角速度
11.另外还有LMotor关节,plane-2d 关节
下面是关机的生成函数列表,其销毁函数是相同的
dJointID dJointCreateBall (dWorldID, dJointGroupID);
dJointID dJointCreateHinge (dWorldID, dJointGroupID);
dJointID dJointCreateSlider (dWorldID, dJointGroupID);
dJointID dJointCreateContact (dWorldID, dJointGroupID, const dContact *);
dJointID dJointCreateUniversal (dWorldID, dJointGroupID);
dJointID dJointCreateHinge2 (dWorldID, dJointGroupID);
dJointID dJointCreatePR (dWorldID, dJointGroupID);
dJointID dJointCreatePU (dWorldID, dJointGroupID);
dJointID dJointCreatePiston (dWorldID, dJointGroupID);
dJointID dJointCreateFixed (dWorldID, dJointGroupID);
dJointID dJointCreateAMotor (dWorldID, dJointGroupID);
dJointID dJointCreateLMotor (dWorldID, dJointGroupID);
dJointID dJointCreatePlane2d (dWorldID, dJointGroupID);
参考文献:http://opende.sourceforge.net/wiki/index.php/Manual_%28Joint_Types_and_Functions%29
关于ode物理引擎的时候可参考ode库自带demo
当然也可以参考盖莫游戏引擎sdk上面附有3个基于ode的物理模拟