15 #ifndef PHYSXBODYDESC_H
16 #define PHYSXBODYDESC_H
18 #include "pandabase.h"
21 #include "physxEnums.h"
22 #include "physx_includes.h"
33 INLINE ~PhysxBodyDesc();
35 INLINE
void set_to_default();
36 INLINE
bool is_valid()
const;
38 void set_mass(
float mass);
39 void set_linear_damping(
float damping);
40 void set_angular_damping(
float damping);
41 void set_linear_velocity(
const LVector3f &velocity);
42 void set_angular_velocity(
const LVector3f &velocity);
43 void set_max_angular_velocity(
float maximum);
44 void set_sleep_linear_velocity(
float velocity);
45 void set_sleep_angular_velocity(
float velocity);
46 void set_solver_iteration_count(
unsigned int count);
47 void set_sleep_energy_threshold(
float threshold);
48 void set_sleep_damping(
float damping);
49 void set_mass_local_mat(
const LMatrix4f &mat);
50 void set_mass_space_inertia(
const LVector3f &inertia);
51 void set_flag(PhysxBodyFlag flag,
bool value);
52 void set_ccd_motion_threshold(
float threshold);
53 void set_wake_up_counter(
float value);
54 void set_contact_report_threshold(
float threshold);
56 float get_mass()
const;
57 float get_linear_damping()
const;
58 float get_angular_damping()
const;
61 float get_max_angular_velocity()
const;
62 float get_sleep_linear_velocity()
const;
63 float get_sleep_angular_velocity()
const;
64 unsigned int get_solver_iteration_count()
const;
65 float get_sleep_energy_threshold()
const;
66 float get_sleep_damping()
const;
69 bool get_flag(PhysxBodyFlag flag)
const;
70 float get_ccd_motion_threshold()
const;
71 float get_wake_up_counter()
const;
72 float get_contact_report_threshold()
const;
78 #include "physxBodyDesc.I"
80 #endif // PHYSXBODYDESC_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This class exists just to provide scoping for the enums shared by PhysX classes.
This is a 4-by-4 transform matrix.
Descriptor for the optional rigid body dynamic state of PhysxActor.