00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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
00027
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__