Panda3D
|
00001 // Filename: odeLMotorJoint.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 00016 INLINE void OdeLMotorJoint:: 00017 set_num_axes(int num) { 00018 dJointSetLMotorNumAxes(_id, num); 00019 } 00020 00021 INLINE void OdeLMotorJoint:: 00022 set_axis(int anum, int rel, dReal x, dReal y, dReal z) { 00023 dJointSetLMotorAxis(_id, anum, rel, x, y, z); 00024 } 00025 00026 INLINE void OdeLMotorJoint:: 00027 set_axis(int anum, int rel, const LVecBase3f &axis) { 00028 dJointSetLMotorAxis(_id, anum, rel, axis[0], axis[1], axis[2]); 00029 } 00030 00031 INLINE void OdeLMotorJoint:: 00032 set_param(int parameter, dReal value) { 00033 dJointSetLMotorParam(_id, parameter, value); 00034 } 00035 00036 INLINE int OdeLMotorJoint:: 00037 get_num_axes() const { 00038 return dJointGetLMotorNumAxes(_id); 00039 } 00040 00041 INLINE LVecBase3f OdeLMotorJoint:: 00042 get_axis(int anum) const { 00043 dVector3 result; 00044 dJointGetLMotorAxis(_id, anum, result); 00045 return LVecBase3f(result[0], result[1], result[2]); 00046 } 00047 00048 INLINE dReal OdeLMotorJoint:: 00049 get_param(int parameter) const { 00050 return dJointGetLMotorParam(_id, parameter); 00051 } 00052