21BulletSoftBodyWorldInfo::
22BulletSoftBodyWorldInfo(btSoftBodyWorldInfo &info) : _info(info) {
29void BulletSoftBodyWorldInfo::
30garbage_collect(
int lifetime) {
33 _info.m_sparsesdf.GarbageCollect(lifetime);
39void BulletSoftBodyWorldInfo::
40set_air_density(PN_stdfloat density) {
43 _info.air_density = (btScalar)density;
49void BulletSoftBodyWorldInfo::
50set_water_density(PN_stdfloat density) {
53 _info.water_density = (btScalar)density;
59void BulletSoftBodyWorldInfo::
60set_water_offset(PN_stdfloat offset) {
63 _info.water_offset = (btScalar)offset;
69void BulletSoftBodyWorldInfo::
70set_water_normal(
const LVector3 &normal) {
73 nassertv(!normal.is_nan());
74 _info.water_normal.setValue(normal.get_x(), normal.get_y(), normal.get_z());
80void BulletSoftBodyWorldInfo::
81set_gravity(
const LVector3 &gravity) {
84 nassertv(!gravity.is_nan());
85 _info.m_gravity.setValue(gravity.get_x(), gravity.get_y(), gravity.get_z());
91PN_stdfloat BulletSoftBodyWorldInfo::
92get_air_density()
const {
95 return (PN_stdfloat)_info.air_density;
101PN_stdfloat BulletSoftBodyWorldInfo::
102get_water_density()
const {
105 return (PN_stdfloat)_info.water_density;
111PN_stdfloat BulletSoftBodyWorldInfo::
112get_water_offset()
const {
115 return (PN_stdfloat)_info.water_offset;
121LVector3 BulletSoftBodyWorldInfo::
122get_water_normal()
const {
125 return btVector3_to_LVector3(_info.water_normal);
131LVector3 BulletSoftBodyWorldInfo::
135 return btVector3_to_LVector3(_info.m_gravity);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to MutexHolder, but for a light mutex.