Panda3D
 All Classes Functions Variables Enumerations
physxJointDriveDesc.h
1 // Filename: physxJointDriveDesc.h
2 // Created by: enn0x (01Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXJOINTDRIVEDESC_H
16 #define PHYSXJOINTDRIVEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxEnums.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxJointDriveDesc
25 // Description : Used to describe drive properties for a
26 // PhysxD6Joint.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxJointDriveDesc : public PhysxEnums {
29 
30 PUBLISHED:
31  INLINE PhysxJointDriveDesc();
32  INLINE PhysxJointDriveDesc(float sping, float damping, float forceLimit);
33  INLINE ~PhysxJointDriveDesc();
34 
35  void set_drive_type(PhysxD6JointDriveType type);
36  void set_spring(float spring);
37  void set_damping(float damping);
38  void set_force_limit(float limit);
39 
40  PhysxD6JointDriveType get_drive_type() const;
41  float get_spring() const;
42  float get_damping() const;
43  float get_force_limit() const;
44 
45 public:
46  NxJointDriveDesc _desc;
47 };
48 
49 #include "physxJointDriveDesc.I"
50 
51 #endif // PHYSXJOINTDRIVEDESC_H
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:357