Panda3D
|
00001 // Filename: odeBallJoint.I 00002 // Created by: joswilso (27Dec06) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 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 }