Panda3D
Loading...
Searching...
No Matches
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 */
26class EXPCL_PANDABULLET BulletSoftBodyMaterial {
27
28PUBLISHED:
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
45public:
46 BulletSoftBodyMaterial(btSoftBody::Material &material);
47
48 INLINE btSoftBody::Material &get_material() const;
49
50private:
51 btSoftBody::Material &_material;
52};
53
55
56#endif // __BULLET_SOFT_BODY_MATERIAL_H__
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_angular_stiffness
Getter for the property m_kAST.
get_linear_stiffness
Getter for the property m_kLST.
set_linear_stiffness
Setter for the property m_kLST.
static BulletSoftBodyMaterial empty()
Named constructor intended to be used for asserts which have to return a concrete value.
set_angular_stiffness
Setter for the property m_kAST.
get_volume_preservation
Getter for the property m_kVST.
set_volume_preservation
Setter for the property m_kVST.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.