Panda3D
 All Classes Functions Variables Enumerations
physxJointLimitDesc.h
1 // Filename: physxJointLimitDesc.h
2 // Created by: enn0x (28Sep09)
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 PHYSXJOINTLIMITDESC_H
16 #define PHYSXJOINTLIMITDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physx_includes.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PhysxJointLimitDesc
24 // Description : Describes a joint limit.
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_PANDAPHYSX PhysxJointLimitDesc {
27 
28 PUBLISHED:
29  INLINE PhysxJointLimitDesc();
30  INLINE PhysxJointLimitDesc(float value, float restitution, float hardness);
31  INLINE ~PhysxJointLimitDesc();
32 
33  void set_value(float value);
34  void set_restitution(float restitution);
35  void set_hardness(float hardness);
36 
37  float get_value() const;
38  float get_restitution() const;
39  float get_hardness() const;
40 
41 public:
42  NxJointLimitDesc _desc;
43 };
44 
45 #include "physxJointLimitDesc.I"
46 
47 #endif // PHYSXJOINTLIMITDESC_H
Describes a joint limit.