Panda3D
physxJointLimitSoftDesc.h
1 // Filename: physxJointLimitSoftDesc.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 PHYSXJOINTLIMITSOFTDESC_H
16 #define PHYSXJOINTLIMITSOFTDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physx_includes.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PhysxJointLimitSoftDesc
24 // Description : Describes a joint limit.
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_PANDAPHYSX PhysxJointLimitSoftDesc {
27 
28 PUBLISHED:
29  INLINE PhysxJointLimitSoftDesc();
30  INLINE PhysxJointLimitSoftDesc(float value, float restitution, float spring, float damping);
31  INLINE ~PhysxJointLimitSoftDesc();
32 
33  void set_value(float value);
34  void set_restitution(float restitution);
35  void set_spring(float spring);
36  void set_damping(float damping);
37 
38  float get_value() const;
39  float get_restitution() const;
40  float get_spring() const;
41  float get_damping() const;
42 
43 public:
44  NxJointLimitSoftDesc _desc;
45 };
46 
47 #include "physxJointLimitSoftDesc.I"
48 
49 #endif // PHYSXJOINTLIMITSOFTDESC_H
Describes a joint limit.