14#ifndef PHYSXBODYDESC_H
15#define PHYSXBODYDESC_H
26class EXPCL_PANDAPHYSX PhysxBodyDesc :
public PhysxEnums {
29 INLINE PhysxBodyDesc();
30 INLINE ~PhysxBodyDesc();
48 void set_flag(PhysxBodyFlag flag,
bool value);
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;
float get_mass() const
Get the mass of body.
float get_max_angular_velocity() const
Get the maximum allowed angular velocity for this body.
float get_angular_damping() const
Get the angular damping applied to the body.
LVector3f get_angular_velocity() const
Get the angular velocity of the body.
float get_sleep_energy_threshold() const
Get the threshold for the energy-based sleeping algorithm.
void set_angular_velocity(const LVector3f &velocity)
Set the angular velocity of the body.
unsigned int get_solver_iteration_count() const
Get the number of solver iterations performed when processing joint/contacts connected to this body.
void set_to_default()
(re)sets the structure to the default.
void set_mass_space_inertia(const LVector3f &inertia)
Set the diagonal mass space inertia tensor in bodies mass frame.
void set_sleep_angular_velocity(float velocity)
Set the maximum angular velocity at which body can go to sleep.
void set_sleep_energy_threshold(float threshold)
Set the threshold for the energy-based sleeping algorithm.
void set_solver_iteration_count(unsigned int count)
Set the number of solver iterations performed when processing joint/contacts connected to this body.
void set_sleep_damping(float damping)
Set the damping factor for bodies that are about to sleep.
void set_wake_up_counter(float value)
Set the body's initial wake up counter.
void set_linear_damping(float damping)
Set the linear damping applied to the body.
void set_linear_velocity(const LVector3f &velocity)
Set the linear Velocity of the body.
void set_angular_damping(float damping)
Set the angular damping applied to the body.
void set_flag(PhysxBodyFlag flag, bool value)
Raise or lower individual body flags.
void set_ccd_motion_threshold(float threshold)
When CCD is globally enabled, it is still not performed if the motion distance of all points on the b...
LVector3f get_linear_velocity() const
Get the linear Velocity of the body.
void set_mass(float mass)
Set the mass of body.
float get_linear_damping() const
Get the linear damping applied to the body.
bool is_valid() const
Returns true if the descriptor is valid.
bool get_flag(PhysxBodyFlag flag) const
Returns the specified body flag.
void set_mass_local_mat(const LMatrix4f &mat)
Set the position and orientation of the center of mass.
void set_sleep_linear_velocity(float velocity)
Set the maximum linear velocity at which the body can go to sleep.
void set_contact_report_threshold(float threshold)
Set The force threshold for contact reports.
LMatrix4f get_mass_local_mat() const
Get the position and orientation of the center of mass.
float get_sleep_damping() const
Get the damping factor for bodies that are about to sleep.
void set_max_angular_velocity(float maximum)
Set the maximum allowed angular velocity for this body.
LVector3f get_mass_space_inertia() const
Get the diagonal mass space inertia tensor in bodies mass frame.
float get_sleep_angular_velocity() const
Get the maximum angular velocity at which body can go to sleep.
float get_sleep_linear_velocity() const
Get the maximum linear velocity at which the body can go to sleep.
This class exists just to provide scoping for the enums shared by PhysX classes.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.