Panda3D

bulletSoftBodyMaterial.I

00001 // Filename: bulletSoftBodyMaterial.I
00002 // Created by:  enn0x (19Mar11)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 ////////////////////////////////////////////////////////////////////
00016 //     Function: BulletSoftBodyMaterial::Destructor
00017 //       Access: Published
00018 //  Description:
00019 ////////////////////////////////////////////////////////////////////
00020 INLINE BulletSoftBodyMaterial::
00021 ~BulletSoftBodyMaterial() {
00022 
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: BulletSoftBodyMaterial::empty
00027 //       Access: Published
00028 //  Description: Named constructor intended to be used for asserts
00029 //               with have to return a concrete value.
00030 ////////////////////////////////////////////////////////////////////
00031 INLINE BulletSoftBodyMaterial BulletSoftBodyMaterial::
00032 empty() {
00033 
00034   static btSoftBody::Material material;
00035 
00036   return BulletSoftBodyMaterial(material);
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: BulletSoftBodyWorldInfo::get_material
00041 //       Access: Public
00042 //  Description:
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE btSoftBody::Material &BulletSoftBodyMaterial::
00045 get_material() const {
00046 
00047   return _material;
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: BulletSoftBodyMaterial::getLinearStiffness
00052 //       Access: Published
00053 //  Description: Getter for the property m_kLST.
00054 ////////////////////////////////////////////////////////////////////
00055 INLINE PN_stdfloat BulletSoftBodyMaterial::
00056 getLinearStiffness() const {
00057 
00058   return (PN_stdfloat)_material.m_kLST;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: BulletSoftBodyMaterial::setLinearStiffness
00063 //       Access: Published
00064 //  Description: Setter for the property m_kLST.
00065 ////////////////////////////////////////////////////////////////////
00066 INLINE void BulletSoftBodyMaterial::
00067 setLinearStiffness(PN_stdfloat value) {
00068 
00069   _material.m_kLST = (btScalar)value;
00070 }
00071 
00072 ////////////////////////////////////////////////////////////////////
00073 //     Function: BulletSoftBodyMaterial::getAngularStiffness
00074 //       Access: Published
00075 //  Description: Getter for the property m_kAST.
00076 ////////////////////////////////////////////////////////////////////
00077 INLINE PN_stdfloat BulletSoftBodyMaterial::
00078 getAngularStiffness() const {
00079 
00080   return (PN_stdfloat)_material.m_kAST;
00081 }
00082 
00083 ////////////////////////////////////////////////////////////////////
00084 //     Function: BulletSoftBodyMaterial::setAngularStiffness
00085 //       Access: Published
00086 //  Description: Setter for the property m_kAST.
00087 ////////////////////////////////////////////////////////////////////
00088 INLINE void BulletSoftBodyMaterial::
00089 setAngularStiffness(PN_stdfloat value) {
00090 
00091   _material.m_kAST = (btScalar)value;
00092 }
00093 
00094 ////////////////////////////////////////////////////////////////////
00095 //     Function: BulletSoftBodyMaterial::getVolumePreservation
00096 //       Access: Published
00097 //  Description: Getter for the property m_kVST.
00098 ////////////////////////////////////////////////////////////////////
00099 INLINE PN_stdfloat BulletSoftBodyMaterial::
00100 getVolumePreservation() const {
00101 
00102   return (PN_stdfloat)_material.m_kVST;
00103 }
00104 
00105 ////////////////////////////////////////////////////////////////////
00106 //     Function: BulletSoftBodyMaterial::setVolumePreservation
00107 //       Access: Published
00108 //  Description: Setter for the property m_kVST.
00109 ////////////////////////////////////////////////////////////////////
00110 INLINE void BulletSoftBodyMaterial::
00111 setVolumePreservation(PN_stdfloat value) {
00112 
00113   _material.m_kVST = (btScalar)value;
00114 }
00115 
 All Classes Functions Variables Enumerations