Panda3D

odeLMotorJoint.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file odeLMotorJoint.I
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 INLINE void OdeLMotorJoint::
15 set_num_axes(int num) {
16 dJointSetLMotorNumAxes(_id, num);
17 }
18
19 INLINE void OdeLMotorJoint::
20 set_axis(int anum, int rel, dReal x, dReal y, dReal z) {
21 dJointSetLMotorAxis(_id, anum, rel, x, y, z);
22 }
23
24 INLINE void OdeLMotorJoint::
25 set_axis(int anum, int rel, const LVecBase3f &axis) {
26 dJointSetLMotorAxis(_id, anum, rel, axis[0], axis[1], axis[2]);
27 }
28
29 INLINE void OdeLMotorJoint::
30 set_param(int parameter, dReal value) {
31 dJointSetLMotorParam(_id, parameter, value);
32 }
33
34 INLINE int OdeLMotorJoint::
35 get_num_axes() const {
36 return dJointGetLMotorNumAxes(_id);
37 }
38
39 INLINE LVecBase3f OdeLMotorJoint::
40 get_axis(int anum) const {
41 dVector3 result;
42 dJointGetLMotorAxis(_id, anum, result);
43 return LVecBase3f(result[0], result[1], result[2]);
44 }
45
46 INLINE dReal OdeLMotorJoint::
47 get_param(int parameter) const {
48 return dJointGetLMotorParam(_id, parameter);
49 }