50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
|
/**
|
||
|
* PANDA 3D SOFTWARE
|
||
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
||
|
*
|
||
|
* All use of this software is subject to the terms of the revised BSD
|
||
|
* license. You should have received a copy of this license along
|
||
|
* with this source code in a file named "LICENSE."
|
||
|
*
|
||
|
* @file odeLMotorJoint.I
|
||
|
* @author joswilso
|
||
|
* @date 2006-12-27
|
||
|
*/
|
||
|
|
||
|
INLINE void OdeLMotorJoint::
|
||
|
set_num_axes(int num) {
|
||
|
dJointSetLMotorNumAxes(_id, num);
|
||
|
}
|
||
|
|
||
|
INLINE void OdeLMotorJoint::
|
||
|
set_axis(int anum, int rel, dReal x, dReal y, dReal z) {
|
||
|
dJointSetLMotorAxis(_id, anum, rel, x, y, z);
|
||
|
}
|
||
|
|
||
|
INLINE void OdeLMotorJoint::
|
||
|
set_axis(int anum, int rel, const LVecBase3f &axis) {
|
||
|
dJointSetLMotorAxis(_id, anum, rel, axis[0], axis[1], axis[2]);
|
||
|
}
|
||
|
|
||
|
INLINE void OdeLMotorJoint::
|
||
|
set_param(int parameter, dReal value) {
|
||
|
dJointSetLMotorParam(_id, parameter, value);
|
||
|
}
|
||
|
|
||
|
INLINE int OdeLMotorJoint::
|
||
|
get_num_axes() const {
|
||
|
return dJointGetLMotorNumAxes(_id);
|
||
|
}
|
||
|
|
||
|
INLINE LVecBase3f OdeLMotorJoint::
|
||
|
get_axis(int anum) const {
|
||
|
dVector3 result;
|
||
|
dJointGetLMotorAxis(_id, anum, result);
|
||
|
return LVecBase3f(result[0], result[1], result[2]);
|
||
|
}
|
||
|
|
||
|
INLINE dReal OdeLMotorJoint::
|
||
|
get_param(int parameter) const {
|
||
|
return dJointGetLMotorParam(_id, parameter);
|
||
|
}
|