Panda3D
physxJointDriveDesc.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 physxJointDriveDesc.h
10  * @author enn0x
11  * @date 2009-10-01
12  */
13 
14 #ifndef PHYSXJOINTDRIVEDESC_H
15 #define PHYSXJOINTDRIVEDESC_H
16 
17 #include "pandabase.h"
18 
19 #include "physxEnums.h"
20 #include "physx_includes.h"
21 
22 /**
23  * Used to describe drive properties for a PhysxD6Joint.
24  */
25 class EXPCL_PANDAPHYSX PhysxJointDriveDesc : public PhysxEnums {
26 
27 PUBLISHED:
28  INLINE PhysxJointDriveDesc();
29  INLINE PhysxJointDriveDesc(float sping, float damping, float forceLimit);
30  INLINE ~PhysxJointDriveDesc();
31 
32  void set_drive_type(PhysxD6JointDriveType type);
33  void set_spring(float spring);
34  void set_damping(float damping);
35  void set_force_limit(float limit);
36 
37  PhysxD6JointDriveType get_drive_type() const;
38  float get_spring() const;
39  float get_damping() const;
40  float get_force_limit() const;
41 
42 public:
43  NxJointDriveDesc _desc;
44 };
45 
46 #include "physxJointDriveDesc.I"
47 
48 #endif // PHYSXJOINTDRIVEDESC_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Used to describe drive properties for a PhysxD6Joint.
This class exists just to provide scoping for the enums shared by PhysX classes.
Definition: physxEnums.h:355
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.