Panda3D
Loading...
Searching...
No Matches
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
14INLINE void OdeLMotorJoint::
15set_num_axes(int num) {
16 dJointSetLMotorNumAxes(_id, num);
17}
18
19INLINE void OdeLMotorJoint::
20set_axis(int anum, int rel, dReal x, dReal y, dReal z) {
21 dJointSetLMotorAxis(_id, anum, rel, x, y, z);
22}
23
24INLINE void OdeLMotorJoint::
25set_axis(int anum, int rel, const LVecBase3f &axis) {
26 dJointSetLMotorAxis(_id, anum, rel, axis[0], axis[1], axis[2]);
27}
28
29INLINE void OdeLMotorJoint::
30set_param(int parameter, dReal value) {
31 dJointSetLMotorParam(_id, parameter, value);
32}
33
34INLINE int OdeLMotorJoint::
35get_num_axes() const {
36 return dJointGetLMotorNumAxes(_id);
37}
38
39INLINE LVecBase3f OdeLMotorJoint::
40get_axis(int anum) const {
41 dVector3 result;
42 dJointGetLMotorAxis(_id, anum, result);
43 return LVecBase3f(result[0], result[1], result[2]);
44}
45
46INLINE dReal OdeLMotorJoint::
47get_param(int parameter) const {
48 return dJointGetLMotorParam(_id, parameter);
49}