14 #ifndef PHYSXSOFTBODY_H 15 #define PHYSXSOFTBODY_H 42 void set_name(
const char *name);
43 void set_flag(PhysxSoftBodyFlag flag,
bool value);
45 void set_group(
unsigned int group);
46 void set_solver_iterations(
unsigned int iterations);
47 void set_particle_radius(
float radius);
48 #if NX_SDK_VERSION_NUMBER > 281 49 void set_self_collision_thickness(
float thickness);
50 void set_hard_stretch_limitation_factor(
float factor);
52 void set_volume_stiffness(
float stiffness);
53 void set_stretching_stiffness(
float stiffness);
54 void set_damping_coefficient(
float coef);
55 void set_friction(
float friction);
56 void set_tear_factor(
float factor);
57 void set_attachment_tear_factor(
float factor);
59 const char *get_name()
const;
60 bool get_flag(PhysxSoftBodyFlag flag)
const;
62 unsigned int get_group()
const;
63 unsigned int get_num_particles();
64 unsigned int get_solver_iterations()
const;
65 float get_particle_radius()
const;
66 float get_density()
const;
67 float get_relative_grid_spacing()
const;
68 #if NX_SDK_VERSION_NUMBER > 281 69 float get_self_collision_thickness()
const;
70 float get_hard_stretch_limitation_factor()
const;
72 float get_volume_stiffness()
const;
73 float get_stretching_stiffness()
const;
74 float get_damping_coefficient()
const;
75 float get_friction()
const;
76 float get_tear_factor()
const;
77 float get_attachment_tear_factor()
const;
93 bool is_sleeping()
const;
94 void wake_up(
float wakeCounterValue=NX_SLEEP_INTERVAL);
96 void set_sleep_linear_velocity(
float threshold);
97 float get_sleep_linear_velocity()
const;
170 INLINE
void ls()
const;
171 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
180 INLINE NxSoftBody *ptr()
const {
return _ptr; };
182 void link(NxSoftBody *ptr);
194 static void init_type() {
195 PhysxObject::init_type();
197 PhysxObject::get_class_type());
200 return get_class_type();
204 return get_class_type();
213 #endif // PHYSXSOFTBODY_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A scene is a collection of bodies, constraints, and effectors which can interact.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.