Panda3D

bulletSoftBodyWorldInfo.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file bulletSoftBodyWorldInfo.h
10 * @author enn0x
11 * @date 2010-03-04
12 */
13
14 #ifndef __BULLET_SOFT_BODY_WORLD_INFO_H__
15 #define __BULLET_SOFT_BODY_WORLD_INFO_H__
16
17 #include "pandabase.h"
18
19 #include "bullet_includes.h"
20 #include "bullet_utils.h"
21
22 #include "luse.h"
23
24 /**
25 *
26 */
27 class EXPCL_PANDABULLET BulletSoftBodyWorldInfo {
28
29 PUBLISHED:
30 INLINE ~BulletSoftBodyWorldInfo();
31
32 void set_air_density(PN_stdfloat density);
33 void set_water_density(PN_stdfloat density);
34 void set_water_offset(PN_stdfloat offset);
35 void set_water_normal(const LVector3 &normal);
36 void set_gravity(const LVector3 &gravity);
37
38 PN_stdfloat get_air_density() const;
39 PN_stdfloat get_water_density() const;
40 PN_stdfloat get_water_offset() const;
41 LVector3 get_water_normal() const;
42 LVector3 get_gravity() const;
43
44 void garbage_collect(int lifetime=256);
45
46 MAKE_PROPERTY(air_density, get_air_density, set_air_density);
47 MAKE_PROPERTY(water_density, get_water_density, set_water_density);
48 MAKE_PROPERTY(water_offset, get_water_offset, set_water_offset);
49 MAKE_PROPERTY(water_normal, get_water_normal, set_water_normal);
50 MAKE_PROPERTY(gravity, get_gravity, set_gravity);
51
52 public:
53 BulletSoftBodyWorldInfo(btSoftBodyWorldInfo &_info);
54
55 INLINE btSoftBodyWorldInfo &get_info() const;
56
57 private:
58 btSoftBodyWorldInfo &_info;
59 };
60
61 #include "bulletSoftBodyWorldInfo.I"
62
63 #endif // __BULLET_SOFT_BODY_WORLD_INFO_H__
bulletSoftBodyWorldInfo.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bullet_utils.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BulletSoftBodyWorldInfo
Definition: bulletSoftBodyWorldInfo.h:27
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.