Panda3D
 All Classes Functions Variables Enumerations
bulletSoftBodyMaterial.I
1 // Filename: bulletSoftBodyMaterial.I
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 ////////////////////////////////////////////////////////////////////
16 // Function: BulletSoftBodyMaterial::Destructor
17 // Access: Published
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE BulletSoftBodyMaterial::
21 ~BulletSoftBodyMaterial() {
22 
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: BulletSoftBodyMaterial::empty
27 // Access: Published
28 // Description: Named constructor intended to be used for asserts
29 // with have to return a concrete value.
30 ////////////////////////////////////////////////////////////////////
32 empty() {
33 
34  static btSoftBody::Material material;
35 
36  return BulletSoftBodyMaterial(material);
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: BulletSoftBodyWorldInfo::get_material
41 // Access: Public
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 INLINE btSoftBody::Material &BulletSoftBodyMaterial::
45 get_material() const {
46 
47  return _material;
48 }
49 
50 ////////////////////////////////////////////////////////////////////
51 // Function: BulletSoftBodyMaterial::getLinearStiffness
52 // Access: Published
53 // Description: Getter for the property m_kLST.
54 ////////////////////////////////////////////////////////////////////
55 INLINE PN_stdfloat BulletSoftBodyMaterial::
57 
58  return (PN_stdfloat)_material.m_kLST;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: BulletSoftBodyMaterial::setLinearStiffness
63 // Access: Published
64 // Description: Setter for the property m_kLST.
65 ////////////////////////////////////////////////////////////////////
66 INLINE void BulletSoftBodyMaterial::
67 setLinearStiffness(PN_stdfloat value) {
68 
69  _material.m_kLST = (btScalar)value;
70 }
71 
72 ////////////////////////////////////////////////////////////////////
73 // Function: BulletSoftBodyMaterial::getAngularStiffness
74 // Access: Published
75 // Description: Getter for the property m_kAST.
76 ////////////////////////////////////////////////////////////////////
77 INLINE PN_stdfloat BulletSoftBodyMaterial::
79 
80  return (PN_stdfloat)_material.m_kAST;
81 }
82 
83 ////////////////////////////////////////////////////////////////////
84 // Function: BulletSoftBodyMaterial::setAngularStiffness
85 // Access: Published
86 // Description: Setter for the property m_kAST.
87 ////////////////////////////////////////////////////////////////////
88 INLINE void BulletSoftBodyMaterial::
89 setAngularStiffness(PN_stdfloat value) {
90 
91  _material.m_kAST = (btScalar)value;
92 }
93 
94 ////////////////////////////////////////////////////////////////////
95 // Function: BulletSoftBodyMaterial::getVolumePreservation
96 // Access: Published
97 // Description: Getter for the property m_kVST.
98 ////////////////////////////////////////////////////////////////////
99 INLINE PN_stdfloat BulletSoftBodyMaterial::
101 
102  return (PN_stdfloat)_material.m_kVST;
103 }
104 
105 ////////////////////////////////////////////////////////////////////
106 // Function: BulletSoftBodyMaterial::setVolumePreservation
107 // Access: Published
108 // Description: Setter for the property m_kVST.
109 ////////////////////////////////////////////////////////////////////
110 INLINE void BulletSoftBodyMaterial::
111 setVolumePreservation(PN_stdfloat value) {
112 
113  _material.m_kVST = (btScalar)value;
114 }
115 
PN_stdfloat getLinearStiffness() const
Getter for the property m_kLST.
PN_stdfloat getVolumePreservation() const
Getter for the property m_kVST.
static BulletSoftBodyMaterial empty()
Named constructor intended to be used for asserts with have to return a concrete value.
void setLinearStiffness(PN_stdfloat value)
Setter for the property m_kLST.
PN_stdfloat getAngularStiffness() const
Getter for the property m_kAST.
void setAngularStiffness(PN_stdfloat value)
Setter for the property m_kAST.
void setVolumePreservation(PN_stdfloat value)
Setter for the property m_kVST.