ackb2d 0.9
3D Gamestudio Box 2d Wraper
|
00001 #ifndef __B2_DISTANCE_JOINT_H__ 00002 #define __B2_DISTANCE_JOINT_H__ 00003 00004 // Get anchorA 00005 void b2Distancejoint_GetAnchorA(b2DistanceJoint *joint, VECTOR *outAnchor); 00006 00007 // Get anchorB 00008 void b2Distancejoint_GetAnchorB(b2DistanceJoint *joint, VECTOR *outAnchor); 00009 00010 void b2Distancejoint_GetReactionForce(b2DistanceJoint *joint, var inv_dt, VECTOR *outReactionForce); 00011 00012 var b2Distancejoint_GetReactionTorque(b2DistanceJoint *joint, var inv_dt); 00013 00016 void b2Distancejoint_SetLength(b2DistanceJoint *joint, var length); 00017 00018 var b2Distancejoint_GetLength(b2DistanceJoint *joint); 00019 00020 // Set/get frequency in Hz. 00021 void b2Distancejoint_SetFrequency(b2DistanceJoint *joint, var hz); 00022 00023 var b2Distancejoint_GetFrequency(b2DistanceJoint *joint); 00024 00025 // Set/get damping ratio. 00026 void b2Distancejoint_SetDampingRatio(b2DistanceJoint *joint, var ratio); 00027 00028 var b2Distancejoint_GetDampingRatio(b2DistanceJoint *joint); 00029 00030 #endif // __B2_DISTANCE_JOINT_H__