00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 INLINE void OdeBallJoint::
00016 set_anchor(dReal x, dReal y, dReal z) {
00017 dJointSetBallAnchor(_id, x, y, z);
00018 }
00019
00020 INLINE void OdeBallJoint::
00021 set_anchor(const LVecBase3f &anchor) {
00022 dJointSetBallAnchor(_id, anchor[0], anchor[1], anchor[2]);
00023 }
00024
00025 INLINE void OdeBallJoint::
00026 set_anchor2(dReal x, dReal y, dReal z) {
00027 dJointSetBallAnchor2(_id, x, y, z);
00028 }
00029
00030 INLINE void OdeBallJoint::
00031 set_anchor2(const LVecBase3f &anchor) {
00032 dJointSetBallAnchor2(_id, anchor[0], anchor[1], anchor[2]);
00033 }
00034
00035 INLINE LVecBase3f OdeBallJoint::
00036 get_anchor() const {
00037 dVector3 result;
00038 dJointGetBallAnchor(_id, result);
00039 return LVecBase3f(result[0], result[1], result[2]);
00040 }
00041
00042 INLINE LVecBase3f OdeBallJoint::
00043 get_anchor2() const {
00044 dVector3 result;
00045 dJointGetBallAnchor2(_id, result);
00046 return LVecBase3f(result[0], result[1], result[2]);
00047 }