15 #ifndef __BULLET_SOFT_BODY_CONFIG_H__ 16 #define __BULLET_SOFT_BODY_CONFIG_H__ 18 #include "pandabase.h" 20 #include "bullet_includes.h" 32 CF_rigid_vs_soft_mask = 0x000f,
33 CF_sdf_rigid_soft = 0x0001,
34 CF_cluster_rigid_soft = 0x0002,
35 CF_soft_vs_soft_mask = 0x0030,
36 CF_vertex_face_soft_soft = 0x0010,
37 CF_cluster_soft_soft = 0x0020,
38 CF_cluster_self = 0x0040,
49 void clear_all_collision_flags();
50 void set_collision_flag(CollisionFlag flag,
bool value);
51 bool get_collision_flag(CollisionFlag flag)
const;
53 void set_aero_model(AeroModel value);
54 AeroModel get_aero_model()
const;
56 INLINE
void set_velocities_correction_factor(PN_stdfloat value);
57 INLINE
void set_damping_coefficient(PN_stdfloat value);
58 INLINE
void set_drag_coefficient(PN_stdfloat value);
59 INLINE
void set_lift_coefficient(PN_stdfloat value);
60 INLINE
void set_pressure_coefficient(PN_stdfloat value);
61 INLINE
void set_volume_conversation_coefficient(PN_stdfloat value);
62 INLINE
void set_dynamic_friction_coefficient(PN_stdfloat value);
63 INLINE
void set_pose_matching_coefficient(PN_stdfloat value);
64 INLINE
void set_rigid_contacts_hardness(PN_stdfloat value);
65 INLINE
void set_kinetic_contacts_hardness(PN_stdfloat value);
66 INLINE
void set_soft_contacts_hardness(PN_stdfloat value);
67 INLINE
void set_anchors_hardness(PN_stdfloat value);
68 INLINE
void set_soft_vs_rigid_hardness(PN_stdfloat value);
69 INLINE
void set_soft_vs_kinetic_hardness(PN_stdfloat value);
70 INLINE
void set_soft_vs_soft_hardness(PN_stdfloat value);
71 INLINE
void set_soft_vs_rigid_impulse_split(PN_stdfloat value);
72 INLINE
void set_soft_vs_kinetic_impulse_split(PN_stdfloat value);
73 INLINE
void set_soft_vs_soft_impulse_split(PN_stdfloat value);
74 INLINE
void set_maxvolume(PN_stdfloat value);
75 INLINE
void set_timescale(PN_stdfloat value);
76 INLINE
void set_positions_solver_iterations(
int value);
77 INLINE
void set_velocities_solver_iterations(
int value);
78 INLINE
void set_drift_solver_iterations(
int value);
79 INLINE
void set_cluster_solver_iterations(
int value);
81 INLINE PN_stdfloat get_velocities_correction_factor()
const;
82 INLINE PN_stdfloat get_damping_coefficient()
const;
83 INLINE PN_stdfloat get_drag_coefficient()
const;
84 INLINE PN_stdfloat get_lift_coefficient()
const;
85 INLINE PN_stdfloat get_pressure_coefficient()
const;
86 INLINE PN_stdfloat get_volume_conversation_coefficient()
const;
87 INLINE PN_stdfloat get_dynamic_friction_coefficient()
const;
88 INLINE PN_stdfloat get_pose_matching_coefficient()
const;
89 INLINE PN_stdfloat get_rigid_contacts_hardness()
const;
90 INLINE PN_stdfloat get_kinetic_contacts_hardness()
const;
91 INLINE PN_stdfloat get_soft_contacts_hardness()
const;
92 INLINE PN_stdfloat get_anchors_hardness()
const;
93 INLINE PN_stdfloat get_soft_vs_rigid_hardness()
const;
94 INLINE PN_stdfloat get_soft_vs_kinetic_hardness()
const;
95 INLINE PN_stdfloat get_soft_vs_soft_hardness()
const;
96 INLINE PN_stdfloat get_soft_vs_rigid_impulse_split()
const;
97 INLINE PN_stdfloat get_soft_vs_kinetic_impulse_split()
const;
98 INLINE PN_stdfloat get_soft_vs_soft_impulse_split()
const;
99 INLINE PN_stdfloat get_maxvolume()
const;
100 INLINE PN_stdfloat get_timescale()
const;
101 INLINE
int get_positions_solver_iterations()
const;
102 INLINE
int get_velocities_solver_iterations()
const;
103 INLINE
int get_drift_solver_iterations()
const;
104 INLINE
int get_cluster_solver_iterations()
const;
110 btSoftBody::Config &_cfg;
113 #include "bulletSoftBodyConfig.I" 115 #endif // __BULLET_SOFT_BODY_CONFIG_H__