00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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