Panda3D
physxMotorDesc.cxx
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 physxMotorDesc.cxx
10  * @author enn0x
11  * @date 2009-09-28
12  */
13 
14 #include "physxMotorDesc.h"
15 
16 /**
17  *
18  */
19 void PhysxMotorDesc::
20 set_vel_target(float velTarget) {
21 
22  _desc.velTarget = velTarget;
23 }
24 
25 /**
26  *
27  */
28 void PhysxMotorDesc::
29 set_max_force(float maxForce) {
30 
31  _desc.maxForce = maxForce;
32 }
33 
34 /**
35  *
36  */
37 void PhysxMotorDesc::
38 set_free_spin(bool freeSpin) {
39 
40  _desc.freeSpin = (NX_BOOL)freeSpin;
41 }
42 
43 /**
44  *
45  */
46 float PhysxMotorDesc::
47 get_vel_target() const {
48 
49  return _desc.velTarget;
50 }
51 
52 /**
53  *
54  */
55 float PhysxMotorDesc::
56 get_max_force() const {
57 
58  return _desc.maxForce;
59 }
60 
61 /**
62  *
63  */
64 bool PhysxMotorDesc::
65 get_free_spin() const {
66 
67  return (_desc.freeSpin) ? true : false;
68 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.