15 #ifndef PHYSXSOFTBODY_H 16 #define PHYSXSOFTBODY_H 18 #include "pandabase.h" 21 #include "physxObject.h" 22 #include "physxObjectCollection.h" 23 #include "physxEnums.h" 24 #include "physx_includes.h" 38 INLINE ~PhysxSoftBody();
44 void set_name(
const char *name);
45 void set_flag(PhysxSoftBodyFlag flag,
bool value);
47 void set_group(
unsigned int group);
48 void set_solver_iterations(
unsigned int iterations);
49 void set_particle_radius(
float radius);
50 #if NX_SDK_VERSION_NUMBER > 281 51 void set_self_collision_thickness(
float thickness);
52 void set_hard_stretch_limitation_factor(
float factor);
54 void set_volume_stiffness(
float stiffness);
55 void set_stretching_stiffness(
float stiffness);
56 void set_damping_coefficient(
float coef);
57 void set_friction(
float friction);
58 void set_tear_factor(
float factor);
59 void set_attachment_tear_factor(
float factor);
61 const char *get_name()
const;
62 bool get_flag(PhysxSoftBodyFlag flag)
const;
64 unsigned int get_group()
const;
65 unsigned int get_num_particles();
66 unsigned int get_solver_iterations()
const;
67 float get_particle_radius()
const;
68 float get_density()
const;
69 float get_relative_grid_spacing()
const;
70 #if NX_SDK_VERSION_NUMBER > 281 71 float get_self_collision_thickness()
const;
72 float get_hard_stretch_limitation_factor()
const;
74 float get_volume_stiffness()
const;
75 float get_stretching_stiffness()
const;
76 float get_damping_coefficient()
const;
77 float get_friction()
const;
78 float get_tear_factor()
const;
79 float get_attachment_tear_factor()
const;
95 bool is_sleeping()
const;
96 void wake_up(
float wakeCounterValue=NX_SLEEP_INTERVAL);
98 void set_sleep_linear_velocity(
float threshold);
99 float get_sleep_linear_velocity()
const;
172 INLINE
void ls()
const;
173 INLINE
void ls(ostream &out,
int indent_level=0)
const;
183 INLINE NxSoftBody *ptr()
const {
return _ptr; };
185 void link(NxSoftBody *ptr);
198 static void init_type() {
199 PhysxObject::init_type();
200 register_type(_type_handle,
"PhysxSoftBody",
201 PhysxObject::get_class_type());
204 return get_class_type();
208 return get_class_type();
215 #include "physxSoftBody.I" 217 #endif // PHYSXSOFTBODY_H
A scene is a collection of bodies, constraints, and effectors which can interact. ...
This class exists just to provide scoping for the enums shared by PhysX classes.
Renderable geometry which represents a soft body mesh.
TypeHandle is the identifier used to differentiate C++ class types.