Panda3D
bulletSoftBodyMaterial.h
1 // Filename: bulletSoftBodyMaterial.h
2 // Created by: enn0x (19Mar11)
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 __BULLET_SOFT_BODY_MATERIAL_H__
16 #define __BULLET_SOFT_BODY_MATERIAL_H__
17 
18 #include "pandabase.h"
19 
20 #include "bullet_includes.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : BulletSoftBodyMaterial
24 // Description :
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_PANDABULLET BulletSoftBodyMaterial {
27 
28 PUBLISHED:
29  INLINE ~BulletSoftBodyMaterial();
30  INLINE static BulletSoftBodyMaterial empty();
31 
32  INLINE void setLinearStiffness(PN_stdfloat value);
33  INLINE void setAngularStiffness(PN_stdfloat value);
34  INLINE void setVolumePreservation(PN_stdfloat value);
35 
36  INLINE PN_stdfloat getLinearStiffness() const;
37  INLINE PN_stdfloat getAngularStiffness() const;
38  INLINE PN_stdfloat getVolumePreservation() const;
39 
40 public:
41  BulletSoftBodyMaterial(btSoftBody::Material &material);
42 
43  INLINE btSoftBody::Material &get_material() const;
44 
45 private:
46  btSoftBody::Material &_material;
47 };
48 
49 #include "bulletSoftBodyMaterial.I"
50 
51 #endif // __BULLET_SOFT_BODY_MATERIAL_H__