14 #ifndef PHYSXBODYDESC_H 15 #define PHYSXBODYDESC_H 32 INLINE
void set_to_default();
33 INLINE
bool is_valid()
const;
35 void set_mass(
float mass);
36 void set_linear_damping(
float damping);
37 void set_angular_damping(
float damping);
38 void set_linear_velocity(
const LVector3f &velocity);
39 void set_angular_velocity(
const LVector3f &velocity);
40 void set_max_angular_velocity(
float maximum);
41 void set_sleep_linear_velocity(
float velocity);
42 void set_sleep_angular_velocity(
float velocity);
43 void set_solver_iteration_count(
unsigned int count);
44 void set_sleep_energy_threshold(
float threshold);
45 void set_sleep_damping(
float damping);
46 void set_mass_local_mat(
const LMatrix4f &mat);
47 void set_mass_space_inertia(
const LVector3f &inertia);
48 void set_flag(PhysxBodyFlag flag,
bool value);
49 void set_ccd_motion_threshold(
float threshold);
50 void set_wake_up_counter(
float value);
51 void set_contact_report_threshold(
float threshold);
53 float get_mass()
const;
54 float get_linear_damping()
const;
55 float get_angular_damping()
const;
56 LVector3f get_linear_velocity()
const;
57 LVector3f get_angular_velocity()
const;
58 float get_max_angular_velocity()
const;
59 float get_sleep_linear_velocity()
const;
60 float get_sleep_angular_velocity()
const;
61 unsigned int get_solver_iteration_count()
const;
62 float get_sleep_energy_threshold()
const;
63 float get_sleep_damping()
const;
64 LMatrix4f get_mass_local_mat()
const;
65 LVector3f get_mass_space_inertia()
const;
66 bool get_flag(PhysxBodyFlag flag)
const;
67 float get_ccd_motion_threshold()
const;
68 float get_wake_up_counter()
const;
69 float get_contact_report_threshold()
const;
77 #endif // PHYSXBODYDESC_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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class exists just to provide scoping for the enums shared by PhysX classes.
Descriptor for the optional rigid body dynamic state of PhysxActor.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.