Panda3D
bulletSoftBodyWorldInfo.h
1 // Filename: bulletSoftBodyWorldInfo.h
2 // Created by: enn0x (04Mar10)
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 #ifndef __BULLET_SOFT_BODY_WORLD_INFO_H__
16 #define __BULLET_SOFT_BODY_WORLD_INFO_H__
17 
18 #include "pandabase.h"
19 
20 #include "bullet_includes.h"
21 #include "bullet_utils.h"
22 
23 #include "luse.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : BulletSoftBodyWorldInfo
27 // Description :
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDABULLET BulletSoftBodyWorldInfo {
30 
31 PUBLISHED:
32  INLINE ~BulletSoftBodyWorldInfo();
33 
34  void set_air_density(PN_stdfloat density);
35  void set_water_density(PN_stdfloat density);
36  void set_water_offset(PN_stdfloat offset);
37  void set_water_normal(const LVector3 &normal);
38  void set_gravity(const LVector3 &gravity);
39 
40  PN_stdfloat get_air_density() const;
41  PN_stdfloat get_water_density() const;
42  PN_stdfloat get_water_offset() const;
43  LVector3 get_water_normal() const;
44  LVector3 get_gravity() const;
45 
46  void garbage_collect(int lifetime=256);
47 
48 public:
49  BulletSoftBodyWorldInfo(btSoftBodyWorldInfo &_info);
50 
51  INLINE btSoftBodyWorldInfo &get_info() const;
52 
53 private:
54  btSoftBodyWorldInfo &_info;
55 };
56 
57 #include "bulletSoftBodyWorldInfo.I"
58 
59 #endif // __BULLET_SOFT_BODY_WORLD_INFO_H__
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100