Panda3D
bulletSoftBodyMaterial.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 bulletSoftBodyMaterial.h
10  * @author enn0x
11  * @date 2011-03-19
12  */
13 
14 #ifndef __BULLET_SOFT_BODY_MATERIAL_H__
15 #define __BULLET_SOFT_BODY_MATERIAL_H__
16 
17 #include "pandabase.h"
18 
19 #include "bullet_includes.h"
20 
21 #include "numeric_types.h"
22 
23 /**
24  *
25  */
26 class EXPCL_PANDABULLET BulletSoftBodyMaterial {
27 
28 PUBLISHED:
29  INLINE ~BulletSoftBodyMaterial();
30  INLINE static BulletSoftBodyMaterial empty();
31 
32  PN_stdfloat get_linear_stiffness() const;
33  void set_linear_stiffness(PN_stdfloat value);
34 
35  PN_stdfloat get_angular_stiffness() const;
36  void set_angular_stiffness(PN_stdfloat value);
37 
38  PN_stdfloat get_volume_preservation() const;
39  void set_volume_preservation(PN_stdfloat value);
40 
41  MAKE_PROPERTY(linear_stiffness, get_linear_stiffness, set_linear_stiffness);
42  MAKE_PROPERTY(angular_stiffness, get_angular_stiffness, set_angular_stiffness);
43  MAKE_PROPERTY(volume_preservation, get_volume_preservation, set_volume_preservation);
44 
45 public:
46  BulletSoftBodyMaterial(btSoftBody::Material &material);
47 
48  INLINE btSoftBody::Material &get_material() const;
49 
50 private:
51  btSoftBody::Material &_material;
52 };
53 
54 #include "bulletSoftBodyMaterial.I"
55 
56 #endif // __BULLET_SOFT_BODY_MATERIAL_H__
BulletSoftBodyMaterial
Definition: bulletSoftBodyMaterial.h:26
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
numeric_types.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bulletSoftBodyMaterial.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.