23 BulletSoftBodyConfig::
24 BulletSoftBodyConfig(btSoftBody::Config &cfg) : _cfg(cfg) {
31 void BulletSoftBodyConfig::
32 clear_all_collision_flags() {
41 void BulletSoftBodyConfig::
42 set_collision_flag(CollisionFlag flag,
bool value) {
46 _cfg.collisions |= flag;
49 _cfg.collisions &= ~(flag);
56 bool BulletSoftBodyConfig::
57 get_collision_flag(CollisionFlag flag)
const {
60 return (_cfg.collisions & flag) ? true :
false;
66 void BulletSoftBodyConfig::
67 set_aero_model(AeroModel value) {
70 _cfg.aeromodel = (btSoftBody::eAeroModel::_)value;
76 BulletSoftBodyConfig::AeroModel BulletSoftBodyConfig::
77 get_aero_model()
const {
80 return (AeroModel)_cfg.aeromodel;
86 PN_stdfloat BulletSoftBodyConfig::
87 get_velocities_correction_factor()
const {
90 return (PN_stdfloat)_cfg.kVCF;
100 _cfg.kVCF = (btScalar)value;
106 PN_stdfloat BulletSoftBodyConfig::
107 get_damping_coefficient()
const {
110 return (PN_stdfloat)_cfg.kDP;
120 _cfg.kDP = (btScalar)value;
126 PN_stdfloat BulletSoftBodyConfig::
127 get_drag_coefficient()
const {
130 return (PN_stdfloat)_cfg.kDG;
140 _cfg.kDG = (btScalar)value;
146 PN_stdfloat BulletSoftBodyConfig::
147 get_lift_coefficient()
const {
150 return (PN_stdfloat)_cfg.kLF;
160 _cfg.kLF = (btScalar)value;
166 PN_stdfloat BulletSoftBodyConfig::
167 get_pressure_coefficient()
const {
170 return (PN_stdfloat)_cfg.kPR;
180 _cfg.kPR = (btScalar)value;
186 PN_stdfloat BulletSoftBodyConfig::
187 get_volume_conservation_coefficient()
const {
190 return (PN_stdfloat)_cfg.kVC;
200 _cfg.kVC = (btScalar)value;
206 PN_stdfloat BulletSoftBodyConfig::
207 get_dynamic_friction_coefficient()
const {
210 return (PN_stdfloat)_cfg.kDF;
220 _cfg.kDF = (btScalar)value;
226 PN_stdfloat BulletSoftBodyConfig::
227 get_pose_matching_coefficient()
const {
230 return (PN_stdfloat)_cfg.kMT;
240 _cfg.kMT = (btScalar)value;
246 PN_stdfloat BulletSoftBodyConfig::
247 get_rigid_contacts_hardness()
const {
250 return (PN_stdfloat)_cfg.kCHR;
260 _cfg.kCHR = (btScalar)value;
266 PN_stdfloat BulletSoftBodyConfig::
267 get_kinetic_contacts_hardness()
const {
270 return (PN_stdfloat)_cfg.kKHR;
280 _cfg.kKHR = (btScalar)value;
286 PN_stdfloat BulletSoftBodyConfig::
287 get_soft_contacts_hardness()
const {
290 return (PN_stdfloat)_cfg.kSHR;
300 _cfg.kSHR = (btScalar)value;
306 PN_stdfloat BulletSoftBodyConfig::
307 get_anchors_hardness()
const {
310 return (PN_stdfloat)_cfg.kAHR;
320 _cfg.kAHR = (btScalar)value;
326 PN_stdfloat BulletSoftBodyConfig::
327 get_soft_vs_rigid_hardness()
const {
330 return (PN_stdfloat)_cfg.kSRHR_CL;
340 _cfg.kSRHR_CL = (btScalar)value;
346 PN_stdfloat BulletSoftBodyConfig::
347 get_soft_vs_kinetic_hardness()
const {
350 return (PN_stdfloat)_cfg.kSKHR_CL;
360 _cfg.kSKHR_CL = (btScalar)value;
366 PN_stdfloat BulletSoftBodyConfig::
367 get_soft_vs_soft_hardness()
const {
370 return (PN_stdfloat)_cfg.kSSHR_CL;
380 _cfg.kSSHR_CL = (btScalar)value;
386 PN_stdfloat BulletSoftBodyConfig::
387 get_soft_vs_rigid_impulse_split()
const {
390 return (PN_stdfloat)_cfg.kSR_SPLT_CL;
400 _cfg.kSR_SPLT_CL = (btScalar)value;
406 PN_stdfloat BulletSoftBodyConfig::
407 get_soft_vs_kinetic_impulse_split()
const {
410 return (PN_stdfloat)_cfg.kSK_SPLT_CL;
420 _cfg.kSK_SPLT_CL = (btScalar)value;
426 PN_stdfloat BulletSoftBodyConfig::
427 get_soft_vs_soft_impulse_split()
const {
430 return (PN_stdfloat)_cfg.kSS_SPLT_CL;
440 _cfg.kSS_SPLT_CL = (btScalar)value;
446 PN_stdfloat BulletSoftBodyConfig::
447 get_maxvolume()
const {
450 return (PN_stdfloat)_cfg.maxvolume;
460 _cfg.maxvolume = (btScalar)value;
466 PN_stdfloat BulletSoftBodyConfig::
467 get_timescale()
const {
470 return (PN_stdfloat)_cfg.timescale;
480 _cfg.timescale = (btScalar)value;
486 int BulletSoftBodyConfig::
487 get_positions_solver_iterations()
const {
490 return _cfg.piterations;
501 _cfg.piterations = value;
507 int BulletSoftBodyConfig::
508 get_velocities_solver_iterations()
const {
511 return _cfg.viterations;
522 _cfg.viterations = value;
528 int BulletSoftBodyConfig::
529 get_drift_solver_iterations()
const {
532 return _cfg.diterations;
543 _cfg.diterations = value;
549 int BulletSoftBodyConfig::
550 get_cluster_solver_iterations()
const {
553 return _cfg.citerations;
564 _cfg.citerations = value;
set_kinetic_contacts_hardness
Setter for property kKHR.
set_soft_vs_kinetic_impulse_split
Setter for property kSK_SPLT_CL.
set_velocities_correction_factor
Setter for property kVCF.
set_velocities_solver_iterations
Setter for property viterations.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
set_pressure_coefficient
Setter for property kPR.
set_drift_solver_iterations
Setter for property diterations.
set_timescale
Setter for property timescale.
set_damping_coefficient
Setter for property kDP.
set_lift_coefficient
Setter for property kLF.
set_soft_contacts_hardness
Setter for property kSHR.
set_soft_vs_rigid_hardness
Setter for property kSRHR_CL.
set_anchors_hardness
Setter for property kAHR.
set_pose_matching_coefficient
Setter for property kMT.
set_rigid_contacts_hardness
Setter for property kCHR.
Similar to MutexHolder, but for a light mutex.
set_drag_coefficient
Setter for property kDG.
set_soft_vs_rigid_impulse_split
Setter for property kSR_SPLT_CL.
set_volume_conservation_coefficient
Setter for property kVC.
set_dynamic_friction_coefficient
Setter for property kDF.
set_cluster_solver_iterations
Setter for property citerations.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
set_soft_vs_soft_impulse_split
Setter for property kSS_SPLT_CL.
set_maxvolume
Setter for property maxvolume.
set_soft_vs_kinetic_hardness
Setter for property kSKHR_CL.
set_positions_solver_iterations
Setter for property piterations.
set_soft_vs_soft_hardness
Setter for property kSSHR_CL.