40 _desc.linearDamping = damping;
49 return _desc.linearDamping;
58 _desc.angularDamping = damping;
67 return _desc.angularDamping;
112 _desc.maxAngularVelocity = maximum;
121 return _desc.maxAngularVelocity;
130 _desc.sleepLinearVelocity = velocity;
139 return _desc.sleepLinearVelocity;
148 _desc.sleepAngularVelocity = velocity;
157 return _desc.sleepAngularVelocity;
167 _desc.solverIterationCount = count;
177 return _desc.solverIterationCount;
187 _desc.sleepEnergyThreshold = threshold;
197 return _desc.sleepEnergyThreshold;
206 _desc.sleepDamping = damping;
215 return _desc.sleepDamping;
264 _desc.flags &= ~(flag);
274 return (_desc.flags & flag) ? true :
false;
284 _desc.CCDMotionThreshold = threshold;
290 float PhysxBodyDesc::
291 get_ccd_motion_threshold()
const {
293 return _desc.CCDMotionThreshold;
302 _desc.wakeUpCounter = value;
308 float PhysxBodyDesc::
309 get_wake_up_counter()
const {
311 return _desc.wakeUpCounter;
320 _desc.contactReportThreshold = threshold;
326 float PhysxBodyDesc::
327 get_contact_report_threshold()
const {
329 return _desc.contactReportThreshold;
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_mass_local_mat(const LMatrix4f &mat)
Set the position and orientation of the center of mass.
float get_linear_damping() const
Get the linear damping applied to the body.
float get_max_angular_velocity() const
Get the maximum allowed angular velocity for this 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_contact_report_threshold(float threshold)
Set The force threshold for contact reports.
void set_sleep_energy_threshold(float threshold)
Set the threshold for the energy-based sleeping algorithm.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_sleep_angular_velocity(float velocity)
Set the maximum angular velocity at which body can go to sleep.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
float get_sleep_energy_threshold() const
Get the threshold for the energy-based sleeping algorithm.
bool get_flag(PhysxBodyFlag flag) const
Returns the specified body flag.
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_max_angular_velocity(float maximum)
Set the maximum allowed angular velocity for this body.
void set_linear_velocity(const LVector3f &velocity)
Set the linear Velocity of the body.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
float get_sleep_linear_velocity() const
Get the maximum linear velocity at which the body can go to sleep.
void set_mass_space_inertia(const LVector3f &inertia)
Set the diagonal mass space inertia tensor in bodies mass frame.
void set_sleep_linear_velocity(float velocity)
Set the maximum linear velocity at which the body can go to sleep.
float get_angular_damping() const
Get the angular damping applied to the body.
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...
LMatrix4f get_mass_local_mat() const
Get the position and orientation of the center of mass.
void set_mass(float mass)
Set the mass of body.
float get_sleep_damping() const
Get the damping factor for bodies that are about to sleep.
void set_angular_damping(float damping)
Set the angular damping applied to the body.
void set_angular_velocity(const LVector3f &velocity)
Set the angular velocity of the body.
LVector3f get_angular_velocity() const
Get the angular velocity of the body.
void set_sleep_damping(float damping)
Set the damping factor for bodies that are about to sleep.
LVector3f get_linear_velocity() const
Get the linear Velocity of the body.
static LMatrix4f nxMat34_to_mat4(const NxMat34 &m)
Converts from NxMat34 to LMatrix4f.
LVector3f get_mass_space_inertia() const
Get the diagonal mass space inertia tensor in bodies mass frame.
void set_flag(PhysxBodyFlag flag, bool value)
Raise or lower individual body flags.
float get_mass() const
Get the mass of body.
float get_sleep_angular_velocity() const
Get the maximum angular velocity at which body can go to sleep.