Panda3D
|
00001 // Filename: bulletSoftBodyWorldInfo.h 00002 // Created by: enn0x (04Mar10) 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_WORLD_INFO_H__ 00016 #define __BULLET_SOFT_BODY_WORLD_INFO_H__ 00017 00018 #include "pandabase.h" 00019 00020 #include "bullet_includes.h" 00021 #include "bullet_utils.h" 00022 00023 #include "luse.h" 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : BulletSoftBodyWorldInfo 00027 // Description : 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDABULLET BulletSoftBodyWorldInfo { 00030 00031 PUBLISHED: 00032 INLINE ~BulletSoftBodyWorldInfo(); 00033 00034 void set_air_density(PN_stdfloat density); 00035 void set_water_density(PN_stdfloat density); 00036 void set_water_offset(PN_stdfloat offset); 00037 void set_water_normal(const LVector3 &normal); 00038 void set_gravity(const LVector3 &gravity); 00039 00040 PN_stdfloat get_air_density() const; 00041 PN_stdfloat get_water_density() const; 00042 PN_stdfloat get_water_offset() const; 00043 LVector3 get_water_normal() const; 00044 LVector3 get_gravity() const; 00045 00046 void garbage_collect(int lifetime=256); 00047 00048 public: 00049 BulletSoftBodyWorldInfo(btSoftBodyWorldInfo &_info); 00050 00051 INLINE btSoftBodyWorldInfo &get_info() const; 00052 00053 private: 00054 btSoftBodyWorldInfo &_info; 00055 }; 00056 00057 #include "bulletSoftBodyWorldInfo.I" 00058 00059 #endif // __BULLET_SOFT_BODY_WORLD_INFO_H__