Panda3D
 All Classes Functions Variables Enumerations
bulletSoftBodyMaterial.h
00001 // Filename: bulletSoftBodyMaterial.h
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 #ifndef __BULLET_SOFT_BODY_MATERIAL_H__
00016 #define __BULLET_SOFT_BODY_MATERIAL_H__
00017 
00018 #include "pandabase.h"
00019 
00020 #include "bullet_includes.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : BulletSoftBodyMaterial
00024 // Description : 
00025 ////////////////////////////////////////////////////////////////////
00026 class EXPCL_PANDABULLET BulletSoftBodyMaterial {
00027 
00028 PUBLISHED:
00029   INLINE ~BulletSoftBodyMaterial();
00030   INLINE static BulletSoftBodyMaterial empty();
00031 
00032   INLINE void setLinearStiffness(PN_stdfloat value);
00033   INLINE void setAngularStiffness(PN_stdfloat value);
00034   INLINE void setVolumePreservation(PN_stdfloat value);
00035 
00036   INLINE PN_stdfloat getLinearStiffness() const;
00037   INLINE PN_stdfloat getAngularStiffness() const;
00038   INLINE PN_stdfloat getVolumePreservation() const;
00039 
00040 public:
00041   BulletSoftBodyMaterial(btSoftBody::Material &material);
00042 
00043   INLINE btSoftBody::Material &get_material() const;
00044 
00045 private:
00046   btSoftBody::Material &_material;
00047 };
00048 
00049 #include "bulletSoftBodyMaterial.I"
00050 
00051 #endif // __BULLET_SOFT_BODY_MATERIAL_H__
 All Classes Functions Variables Enumerations