Panda3D
physxMotorDesc.h
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.h
10  * @author enn0x
11  * @date 2009-09-28
12  */
13 
14 #ifndef PHYSXMOTORDESC_H
15 #define PHYSXMOTORDESC_H
16 
17 #include "pandabase.h"
18 
19 #include "physx_includes.h"
20 
21 /**
22  * Describes a joint motor. Some joints can be motorized, this allows them to
23  * apply a force to cause attached actors to move. Joints which can be
24  * motorized: - PhysxPulleyJoint - PhysxRevoluteJoint
25  */
26 class EXPCL_PANDAPHYSX PhysxMotorDesc {
27 
28 PUBLISHED:
29  INLINE PhysxMotorDesc();
30  INLINE PhysxMotorDesc(float velTarget, float maxForce=0, bool freeSpin=0);
31  INLINE ~PhysxMotorDesc();
32 
33  void set_vel_target(float velTarget);
34  void set_max_force(float maxForce);
35  void set_free_spin(bool freeSpin);
36 
37  float get_vel_target() const;
38  float get_max_force() const;
39  bool get_free_spin() const;
40 
41 public:
42  NxMotorDesc _desc;
43 };
44 
45 #include "physxMotorDesc.I"
46 
47 #endif // PHYSXMOTORDESC_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Describes a joint motor.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.