Panda3D
Public Types | Public Member Functions | List of all members
BulletSoftBodyConfig Class Reference

Public Types

enum  AeroModel {
  AM_vertex_point, AM_vertex_two_sided, AM_vertex_one_sided, AM_face_two_sided,
  AM_face_one_sided
}
 
enum  CollisionFlag {
  CF_rigid_vs_soft_mask = 0x000f, CF_sdf_rigid_soft = 0x0001, CF_cluster_rigid_soft = 0x0002, CF_soft_vs_soft_mask = 0x0030,
  CF_vertex_face_soft_soft = 0x0010, CF_cluster_soft_soft = 0x0020, CF_cluster_self = 0x0040
}
 

Public Member Functions

 BulletSoftBodyConfig (btSoftBody::Config &cfg)
 
void clear_all_collision_flags ()
 
AeroModel get_aero_model () const
 
PN_stdfloat get_anchors_hardness () const
 Getter for property kAHR. More...
 
int get_cluster_solver_iterations () const
 Getter for property citerations. More...
 
bool get_collision_flag (CollisionFlag flag) const
 
PN_stdfloat get_damping_coefficient () const
 Getter for property kDP. More...
 
PN_stdfloat get_drag_coefficient () const
 Getter for property kDG. More...
 
int get_drift_solver_iterations () const
 Getter for property diterations. More...
 
PN_stdfloat get_dynamic_friction_coefficient () const
 Getter for property kDF. More...
 
PN_stdfloat get_kinetic_contacts_hardness () const
 Getter for property kKHR. More...
 
PN_stdfloat get_lift_coefficient () const
 Getter for property kLF. More...
 
PN_stdfloat get_maxvolume () const
 Getter for property maxvolume. More...
 
PN_stdfloat get_pose_matching_coefficient () const
 Getter for property kMT. More...
 
int get_positions_solver_iterations () const
 Getter for property piterations. More...
 
PN_stdfloat get_pressure_coefficient () const
 Getter for property kPR. More...
 
PN_stdfloat get_rigid_contacts_hardness () const
 Getter for property kCHR. More...
 
PN_stdfloat get_soft_contacts_hardness () const
 Getter for property kSHR. More...
 
PN_stdfloat get_soft_vs_kinetic_hardness () const
 Getter for property kSKHR_CL. More...
 
PN_stdfloat get_soft_vs_kinetic_impulse_split () const
 Getter for property kSK_SPLT_CL. More...
 
PN_stdfloat get_soft_vs_rigid_hardness () const
 Getter for property kSRHR_CL. More...
 
PN_stdfloat get_soft_vs_rigid_impulse_split () const
 Getter for property kSR_SPLT_CL. More...
 
PN_stdfloat get_soft_vs_soft_hardness () const
 Getter for property kSSHR_CL. More...
 
PN_stdfloat get_soft_vs_soft_impulse_split () const
 Getter for property kSS_SPLT_CL. More...
 
PN_stdfloat get_timescale () const
 Getter for property timescale. More...
 
PN_stdfloat get_velocities_correction_factor () const
 Getter for property kVCF. More...
 
int get_velocities_solver_iterations () const
 Getter for property viterations. More...
 
PN_stdfloat get_volume_conversation_coefficient () const
 Getter for property kVC. More...
 
void set_aero_model (AeroModel value)
 
void set_anchors_hardness (PN_stdfloat value)
 Setter for property kAHR. More...
 
void set_cluster_solver_iterations (int value)
 Setter for property citerations. More...
 
void set_collision_flag (CollisionFlag flag, bool value)
 
void set_damping_coefficient (PN_stdfloat value)
 Setter for property kDP. More...
 
void set_drag_coefficient (PN_stdfloat value)
 Setter for property kDG. More...
 
void set_drift_solver_iterations (int value)
 Setter for property diterations. More...
 
void set_dynamic_friction_coefficient (PN_stdfloat value)
 Setter for property kDF. More...
 
void set_kinetic_contacts_hardness (PN_stdfloat value)
 Setter for property kKHR. More...
 
void set_lift_coefficient (PN_stdfloat value)
 Setter for property kLF. More...
 
void set_maxvolume (PN_stdfloat value)
 Setter for property maxvolume. More...
 
void set_pose_matching_coefficient (PN_stdfloat value)
 Setter for property kMT. More...
 
void set_positions_solver_iterations (int value)
 Setter for property piterations. More...
 
void set_pressure_coefficient (PN_stdfloat value)
 Setter for property kPR. More...
 
void set_rigid_contacts_hardness (PN_stdfloat value)
 Setter for property kCHR. More...
 
void set_soft_contacts_hardness (PN_stdfloat value)
 Setter for property kSHR. More...
 
void set_soft_vs_kinetic_hardness (PN_stdfloat value)
 Setter for property kSKHR_CL. More...
 
void set_soft_vs_kinetic_impulse_split (PN_stdfloat value)
 Setter for property kSK_SPLT_CL. More...
 
void set_soft_vs_rigid_hardness (PN_stdfloat value)
 Setter for property kSRHR_CL. More...
 
void set_soft_vs_rigid_impulse_split (PN_stdfloat value)
 Setter for property kSR_SPLT_CL. More...
 
void set_soft_vs_soft_hardness (PN_stdfloat value)
 Setter for property kSSHR_CL. More...
 
void set_soft_vs_soft_impulse_split (PN_stdfloat value)
 Setter for property kSS_SPLT_CL. More...
 
void set_timescale (PN_stdfloat value)
 Setter for property timescale. More...
 
void set_velocities_correction_factor (PN_stdfloat value)
 Setter for property kVCF. More...
 
void set_velocities_solver_iterations (int value)
 Setter for property viterations. More...
 
void set_volume_conversation_coefficient (PN_stdfloat value)
 Setter for property kVC. More...
 

Detailed Description

Definition at line 26 of file bulletSoftBodyConfig.h.

Member Function Documentation

◆ get_anchors_hardness()

PN_stdfloat BulletSoftBodyConfig::get_anchors_hardness ( ) const
inline

Getter for property kAHR.

Definition at line 273 of file bulletSoftBodyConfig.I.

References set_anchors_hardness().

Referenced by set_soft_contacts_hardness().

◆ get_cluster_solver_iterations()

int BulletSoftBodyConfig::get_cluster_solver_iterations ( ) const
inline

Getter for property citerations.

Definition at line 540 of file bulletSoftBodyConfig.I.

References set_cluster_solver_iterations().

Referenced by set_drift_solver_iterations().

◆ get_damping_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_damping_coefficient ( ) const
inline

Getter for property kDP.

Definition at line 53 of file bulletSoftBodyConfig.I.

References set_damping_coefficient().

Referenced by set_velocities_correction_factor().

◆ get_drag_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_drag_coefficient ( ) const
inline

Getter for property kDG.

Definition at line 75 of file bulletSoftBodyConfig.I.

References set_drag_coefficient().

Referenced by set_damping_coefficient().

◆ get_drift_solver_iterations()

int BulletSoftBodyConfig::get_drift_solver_iterations ( ) const
inline

Getter for property diterations.

Definition at line 517 of file bulletSoftBodyConfig.I.

References set_drift_solver_iterations().

Referenced by set_velocities_solver_iterations().

◆ get_dynamic_friction_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_dynamic_friction_coefficient ( ) const
inline

Getter for property kDF.

Definition at line 163 of file bulletSoftBodyConfig.I.

References set_dynamic_friction_coefficient().

Referenced by set_volume_conversation_coefficient().

◆ get_kinetic_contacts_hardness()

PN_stdfloat BulletSoftBodyConfig::get_kinetic_contacts_hardness ( ) const
inline

Getter for property kKHR.

Definition at line 229 of file bulletSoftBodyConfig.I.

References set_kinetic_contacts_hardness().

Referenced by set_rigid_contacts_hardness().

◆ get_lift_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_lift_coefficient ( ) const
inline

Getter for property kLF.

Definition at line 97 of file bulletSoftBodyConfig.I.

References set_lift_coefficient().

Referenced by set_drag_coefficient().

◆ get_maxvolume()

PN_stdfloat BulletSoftBodyConfig::get_maxvolume ( ) const
inline

Getter for property maxvolume.

Definition at line 427 of file bulletSoftBodyConfig.I.

References set_maxvolume().

Referenced by set_soft_vs_soft_impulse_split().

◆ get_pose_matching_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_pose_matching_coefficient ( ) const
inline

Getter for property kMT.

Definition at line 185 of file bulletSoftBodyConfig.I.

References set_pose_matching_coefficient().

Referenced by set_dynamic_friction_coefficient().

◆ get_positions_solver_iterations()

int BulletSoftBodyConfig::get_positions_solver_iterations ( ) const
inline

Getter for property piterations.

Definition at line 471 of file bulletSoftBodyConfig.I.

References set_positions_solver_iterations().

Referenced by set_timescale().

◆ get_pressure_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_pressure_coefficient ( ) const
inline

Getter for property kPR.

Definition at line 119 of file bulletSoftBodyConfig.I.

References set_pressure_coefficient().

Referenced by set_lift_coefficient().

◆ get_rigid_contacts_hardness()

PN_stdfloat BulletSoftBodyConfig::get_rigid_contacts_hardness ( ) const
inline

Getter for property kCHR.

Definition at line 207 of file bulletSoftBodyConfig.I.

References set_rigid_contacts_hardness().

Referenced by set_pose_matching_coefficient().

◆ get_soft_contacts_hardness()

PN_stdfloat BulletSoftBodyConfig::get_soft_contacts_hardness ( ) const
inline

Getter for property kSHR.

Definition at line 251 of file bulletSoftBodyConfig.I.

References set_soft_contacts_hardness().

Referenced by set_kinetic_contacts_hardness().

◆ get_soft_vs_kinetic_hardness()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_kinetic_hardness ( ) const
inline

Getter for property kSKHR_CL.

Definition at line 317 of file bulletSoftBodyConfig.I.

References set_soft_vs_kinetic_hardness().

Referenced by set_soft_vs_rigid_hardness().

◆ get_soft_vs_kinetic_impulse_split()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_kinetic_impulse_split ( ) const
inline

Getter for property kSK_SPLT_CL.

Definition at line 383 of file bulletSoftBodyConfig.I.

References set_soft_vs_kinetic_impulse_split().

Referenced by set_soft_vs_rigid_impulse_split().

◆ get_soft_vs_rigid_hardness()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_rigid_hardness ( ) const
inline

Getter for property kSRHR_CL.

Definition at line 295 of file bulletSoftBodyConfig.I.

References set_soft_vs_rigid_hardness().

Referenced by set_anchors_hardness().

◆ get_soft_vs_rigid_impulse_split()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_rigid_impulse_split ( ) const
inline

Getter for property kSR_SPLT_CL.

Definition at line 361 of file bulletSoftBodyConfig.I.

References set_soft_vs_rigid_impulse_split().

Referenced by set_soft_vs_soft_hardness().

◆ get_soft_vs_soft_hardness()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_soft_hardness ( ) const
inline

Getter for property kSSHR_CL.

Definition at line 339 of file bulletSoftBodyConfig.I.

References set_soft_vs_soft_hardness().

Referenced by set_soft_vs_kinetic_hardness().

◆ get_soft_vs_soft_impulse_split()

PN_stdfloat BulletSoftBodyConfig::get_soft_vs_soft_impulse_split ( ) const
inline

Getter for property kSS_SPLT_CL.

Definition at line 405 of file bulletSoftBodyConfig.I.

References set_soft_vs_soft_impulse_split().

Referenced by set_soft_vs_kinetic_impulse_split().

◆ get_timescale()

PN_stdfloat BulletSoftBodyConfig::get_timescale ( ) const
inline

Getter for property timescale.

Definition at line 449 of file bulletSoftBodyConfig.I.

References set_timescale().

Referenced by set_maxvolume().

◆ get_velocities_correction_factor()

PN_stdfloat BulletSoftBodyConfig::get_velocities_correction_factor ( ) const
inline

Getter for property kVCF.

Definition at line 31 of file bulletSoftBodyConfig.I.

References set_velocities_correction_factor().

◆ get_velocities_solver_iterations()

int BulletSoftBodyConfig::get_velocities_solver_iterations ( ) const
inline

Getter for property viterations.

Definition at line 494 of file bulletSoftBodyConfig.I.

References set_velocities_solver_iterations().

Referenced by set_positions_solver_iterations().

◆ get_volume_conversation_coefficient()

PN_stdfloat BulletSoftBodyConfig::get_volume_conversation_coefficient ( ) const
inline

Getter for property kVC.

Definition at line 141 of file bulletSoftBodyConfig.I.

References set_volume_conversation_coefficient().

Referenced by set_pressure_coefficient().

◆ set_anchors_hardness()

void BulletSoftBodyConfig::set_anchors_hardness ( PN_stdfloat  value)
inline

Setter for property kAHR.

Definition at line 284 of file bulletSoftBodyConfig.I.

References get_soft_vs_rigid_hardness().

Referenced by get_anchors_hardness().

◆ set_cluster_solver_iterations()

void BulletSoftBodyConfig::set_cluster_solver_iterations ( int  value)
inline

Setter for property citerations.

Definition at line 551 of file bulletSoftBodyConfig.I.

Referenced by get_cluster_solver_iterations().

◆ set_damping_coefficient()

void BulletSoftBodyConfig::set_damping_coefficient ( PN_stdfloat  value)
inline

Setter for property kDP.

Definition at line 64 of file bulletSoftBodyConfig.I.

References get_drag_coefficient().

Referenced by get_damping_coefficient().

◆ set_drag_coefficient()

void BulletSoftBodyConfig::set_drag_coefficient ( PN_stdfloat  value)
inline

Setter for property kDG.

Definition at line 86 of file bulletSoftBodyConfig.I.

References get_lift_coefficient().

Referenced by get_drag_coefficient().

◆ set_drift_solver_iterations()

void BulletSoftBodyConfig::set_drift_solver_iterations ( int  value)
inline

Setter for property diterations.

Definition at line 528 of file bulletSoftBodyConfig.I.

References get_cluster_solver_iterations().

Referenced by get_drift_solver_iterations().

◆ set_dynamic_friction_coefficient()

void BulletSoftBodyConfig::set_dynamic_friction_coefficient ( PN_stdfloat  value)
inline

Setter for property kDF.

Definition at line 174 of file bulletSoftBodyConfig.I.

References get_pose_matching_coefficient().

Referenced by get_dynamic_friction_coefficient().

◆ set_kinetic_contacts_hardness()

void BulletSoftBodyConfig::set_kinetic_contacts_hardness ( PN_stdfloat  value)
inline

Setter for property kKHR.

Definition at line 240 of file bulletSoftBodyConfig.I.

References get_soft_contacts_hardness().

Referenced by get_kinetic_contacts_hardness().

◆ set_lift_coefficient()

void BulletSoftBodyConfig::set_lift_coefficient ( PN_stdfloat  value)
inline

Setter for property kLF.

Definition at line 108 of file bulletSoftBodyConfig.I.

References get_pressure_coefficient().

Referenced by get_lift_coefficient().

◆ set_maxvolume()

void BulletSoftBodyConfig::set_maxvolume ( PN_stdfloat  value)
inline

Setter for property maxvolume.

Definition at line 438 of file bulletSoftBodyConfig.I.

References get_timescale().

Referenced by get_maxvolume().

◆ set_pose_matching_coefficient()

void BulletSoftBodyConfig::set_pose_matching_coefficient ( PN_stdfloat  value)
inline

Setter for property kMT.

Definition at line 196 of file bulletSoftBodyConfig.I.

References get_rigid_contacts_hardness().

Referenced by get_pose_matching_coefficient().

◆ set_positions_solver_iterations()

void BulletSoftBodyConfig::set_positions_solver_iterations ( int  value)
inline

Setter for property piterations.

Definition at line 482 of file bulletSoftBodyConfig.I.

References get_velocities_solver_iterations().

Referenced by get_positions_solver_iterations().

◆ set_pressure_coefficient()

void BulletSoftBodyConfig::set_pressure_coefficient ( PN_stdfloat  value)
inline

Setter for property kPR.

Definition at line 130 of file bulletSoftBodyConfig.I.

References get_volume_conversation_coefficient().

Referenced by get_pressure_coefficient().

◆ set_rigid_contacts_hardness()

void BulletSoftBodyConfig::set_rigid_contacts_hardness ( PN_stdfloat  value)
inline

Setter for property kCHR.

Definition at line 218 of file bulletSoftBodyConfig.I.

References get_kinetic_contacts_hardness().

Referenced by get_rigid_contacts_hardness().

◆ set_soft_contacts_hardness()

void BulletSoftBodyConfig::set_soft_contacts_hardness ( PN_stdfloat  value)
inline

Setter for property kSHR.

Definition at line 262 of file bulletSoftBodyConfig.I.

References get_anchors_hardness().

Referenced by get_soft_contacts_hardness().

◆ set_soft_vs_kinetic_hardness()

void BulletSoftBodyConfig::set_soft_vs_kinetic_hardness ( PN_stdfloat  value)
inline

Setter for property kSKHR_CL.

Definition at line 328 of file bulletSoftBodyConfig.I.

References get_soft_vs_soft_hardness().

Referenced by get_soft_vs_kinetic_hardness().

◆ set_soft_vs_kinetic_impulse_split()

void BulletSoftBodyConfig::set_soft_vs_kinetic_impulse_split ( PN_stdfloat  value)
inline

Setter for property kSK_SPLT_CL.

Definition at line 394 of file bulletSoftBodyConfig.I.

References get_soft_vs_soft_impulse_split().

Referenced by get_soft_vs_kinetic_impulse_split().

◆ set_soft_vs_rigid_hardness()

void BulletSoftBodyConfig::set_soft_vs_rigid_hardness ( PN_stdfloat  value)
inline

Setter for property kSRHR_CL.

Definition at line 306 of file bulletSoftBodyConfig.I.

References get_soft_vs_kinetic_hardness().

Referenced by get_soft_vs_rigid_hardness().

◆ set_soft_vs_rigid_impulse_split()

void BulletSoftBodyConfig::set_soft_vs_rigid_impulse_split ( PN_stdfloat  value)
inline

Setter for property kSR_SPLT_CL.

Definition at line 372 of file bulletSoftBodyConfig.I.

References get_soft_vs_kinetic_impulse_split().

Referenced by get_soft_vs_rigid_impulse_split().

◆ set_soft_vs_soft_hardness()

void BulletSoftBodyConfig::set_soft_vs_soft_hardness ( PN_stdfloat  value)
inline

Setter for property kSSHR_CL.

Definition at line 350 of file bulletSoftBodyConfig.I.

References get_soft_vs_rigid_impulse_split().

Referenced by get_soft_vs_soft_hardness().

◆ set_soft_vs_soft_impulse_split()

void BulletSoftBodyConfig::set_soft_vs_soft_impulse_split ( PN_stdfloat  value)
inline

Setter for property kSS_SPLT_CL.

Definition at line 416 of file bulletSoftBodyConfig.I.

References get_maxvolume().

Referenced by get_soft_vs_soft_impulse_split().

◆ set_timescale()

void BulletSoftBodyConfig::set_timescale ( PN_stdfloat  value)
inline

Setter for property timescale.

Definition at line 460 of file bulletSoftBodyConfig.I.

References get_positions_solver_iterations().

Referenced by get_timescale().

◆ set_velocities_correction_factor()

void BulletSoftBodyConfig::set_velocities_correction_factor ( PN_stdfloat  value)
inline

Setter for property kVCF.

Definition at line 42 of file bulletSoftBodyConfig.I.

References get_damping_coefficient().

Referenced by get_velocities_correction_factor().

◆ set_velocities_solver_iterations()

void BulletSoftBodyConfig::set_velocities_solver_iterations ( int  value)
inline

Setter for property viterations.

Definition at line 505 of file bulletSoftBodyConfig.I.

References get_drift_solver_iterations().

Referenced by get_velocities_solver_iterations().

◆ set_volume_conversation_coefficient()

void BulletSoftBodyConfig::set_volume_conversation_coefficient ( PN_stdfloat  value)
inline

Setter for property kVC.

Definition at line 152 of file bulletSoftBodyConfig.I.

References get_dynamic_friction_coefficient().

Referenced by get_volume_conversation_coefficient().


The documentation for this class was generated from the following files: