Panda3D
|
Descriptor for the optional rigid body dynamic state of PhysxActor. More...
#include "physxBodyDesc.h"
Public Member Functions | |
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_ccd_motion_threshold () const |
float | get_contact_report_threshold () const |
bool | get_flag (PhysxBodyFlag flag) const |
Returns the specified body flag. | |
float | get_linear_damping () const |
Get the linear damping applied to the body. | |
LVector3f | get_linear_velocity () const |
Get the linear Velocity of the body. | |
float | get_mass () const |
Get the mass of body. | |
LMatrix4f | get_mass_local_mat () const |
Get the position and orientation of the center of mass. | |
LVector3f | get_mass_space_inertia () const |
Get the diagonal mass space inertia tensor in bodies mass frame. | |
float | get_max_angular_velocity () const |
Get the maximum allowed angular velocity for this body. | |
float | get_sleep_angular_velocity () const |
Get the maximum angular velocity at which body can go to sleep. | |
float | get_sleep_damping () const |
Get the damping factor for bodies that are about to sleep. | |
float | get_sleep_energy_threshold () const |
Get the threshold for the energy-based sleeping algorithm. | |
float | get_sleep_linear_velocity () const |
Get the maximum linear velocity at which the body can go to sleep. | |
unsigned int | get_solver_iteration_count () const |
Get the number of solver iterations performed when processing joint/contacts connected to this body. | |
float | get_wake_up_counter () const |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
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. | |
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 body is below this threshold. | |
void | set_contact_report_threshold (float threshold) |
Set The force threshold for contact reports. | |
void | set_flag (PhysxBodyFlag flag, bool value) |
Raise or lower individual body flags. | |
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_mass (float mass) |
Set the mass of body. | |
void | set_mass_local_mat (const LMatrix4f mat) |
Set the position and orientation of the center of mass. | |
void | set_mass_space_inertia (const LVector3f inertia) |
Set the diagonal mass space inertia tensor in bodies mass frame. | |
void | set_max_angular_velocity (float maximum) |
Set the maximum allowed angular velocity for this body. | |
void | set_sleep_angular_velocity (float velocity) |
Set the maximum angular velocity at which body can go to sleep. | |
void | set_sleep_damping (float damping) |
Set the damping factor for bodies that are about to sleep. | |
void | set_sleep_energy_threshold (float threshold) |
Set the threshold for the energy-based sleeping algorithm. | |
void | set_sleep_linear_velocity (float velocity) |
Set the maximum linear velocity at which the body can go to sleep. | |
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_to_default () |
(re)sets the structure to the default. | |
void | set_wake_up_counter (float value) |
Set the body's initial wake up counter. | |
Public Attributes | |
NxBodyDesc | _desc |
Descriptor for the optional rigid body dynamic state of PhysxActor.
Definition at line 29 of file physxBodyDesc.h.
float PhysxBodyDesc::get_angular_damping | ( | ) | const |
Get the angular damping applied to the body.
Definition at line 78 of file physxBodyDesc.cxx.
LVector3f PhysxBodyDesc::get_angular_velocity | ( | ) | const |
Get the angular velocity of the body.
Definition at line 122 of file physxBodyDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
bool PhysxBodyDesc::get_flag | ( | PhysxBodyFlag | flag | ) | const |
Returns the specified body flag.
Definition at line 345 of file physxBodyDesc.cxx.
float PhysxBodyDesc::get_linear_damping | ( | ) | const |
Get the linear damping applied to the body.
Definition at line 56 of file physxBodyDesc.cxx.
LVector3f PhysxBodyDesc::get_linear_velocity | ( | ) | const |
Get the linear Velocity of the body.
Definition at line 100 of file physxBodyDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
float PhysxBodyDesc::get_mass | ( | ) | const |
Get the mass of body.
Definition at line 34 of file physxBodyDesc.cxx.
LMatrix4f PhysxBodyDesc::get_mass_local_mat | ( | ) | const |
Get the position and orientation of the center of mass.
Definition at line 294 of file physxBodyDesc.cxx.
References PhysxManager::nxMat34_to_mat4().
LVector3f PhysxBodyDesc::get_mass_space_inertia | ( | ) | const |
Get the diagonal mass space inertia tensor in bodies mass frame.
Definition at line 318 of file physxBodyDesc.cxx.
References PhysxManager::nxVec3_to_vec3().
float PhysxBodyDesc::get_max_angular_velocity | ( | ) | const |
Get the maximum allowed angular velocity for this body.
Definition at line 146 of file physxBodyDesc.cxx.
float PhysxBodyDesc::get_sleep_angular_velocity | ( | ) | const |
Get the maximum angular velocity at which body can go to sleep.
Definition at line 194 of file physxBodyDesc.cxx.
float PhysxBodyDesc::get_sleep_damping | ( | ) | const |
Get the damping factor for bodies that are about to sleep.
Definition at line 270 of file physxBodyDesc.cxx.
float PhysxBodyDesc::get_sleep_energy_threshold | ( | ) | const |
Get the threshold for the energy-based sleeping algorithm.
Only used when the BF_energy_sleep_test flag is set.
Definition at line 246 of file physxBodyDesc.cxx.
float PhysxBodyDesc::get_sleep_linear_velocity | ( | ) | const |
Get the maximum linear velocity at which the body can go to sleep.
Definition at line 170 of file physxBodyDesc.cxx.
unsigned int PhysxBodyDesc::get_solver_iteration_count | ( | ) | const |
Get the number of solver iterations performed when processing joint/contacts connected to this body.
Definition at line 220 of file physxBodyDesc.cxx.
bool PhysxBodyDesc::is_valid | ( | ) | const [inline] |
Returns true if the descriptor is valid.
Definition at line 54 of file physxBodyDesc.I.
void PhysxBodyDesc::set_angular_damping | ( | float | damping | ) |
Set the angular damping applied to the body.
Definition at line 67 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_angular_velocity | ( | const LVector3f & | velocity | ) |
Set the angular velocity of the body.
Definition at line 111 of file physxBodyDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
void PhysxBodyDesc::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 body is below this threshold.
Definition at line 358 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_contact_report_threshold | ( | float | threshold | ) |
Set The force threshold for contact reports.
Definition at line 402 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_flag | ( | PhysxBodyFlag | flag, |
bool | value | ||
) |
Raise or lower individual body flags.
Definition at line 329 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_linear_damping | ( | float | damping | ) |
Set the linear damping applied to the body.
Definition at line 45 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_linear_velocity | ( | const LVector3f & | velocity | ) |
Set the linear Velocity of the body.
Definition at line 89 of file physxBodyDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
void PhysxBodyDesc::set_mass | ( | float | mass | ) |
Set the mass of body.
Definition at line 23 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_mass_local_mat | ( | const LMatrix4f | mat | ) |
Set the position and orientation of the center of mass.
Definition at line 282 of file physxBodyDesc.cxx.
References PhysxManager::mat4_to_nxMat34().
void PhysxBodyDesc::set_mass_space_inertia | ( | const LVector3f | inertia | ) |
Set the diagonal mass space inertia tensor in bodies mass frame.
Definition at line 306 of file physxBodyDesc.cxx.
References PhysxManager::vec3_to_nxVec3().
void PhysxBodyDesc::set_max_angular_velocity | ( | float | maximum | ) |
Set the maximum allowed angular velocity for this body.
Definition at line 134 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_sleep_angular_velocity | ( | float | velocity | ) |
Set the maximum angular velocity at which body can go to sleep.
Definition at line 182 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_sleep_damping | ( | float | damping | ) |
Set the damping factor for bodies that are about to sleep.
Definition at line 258 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_sleep_energy_threshold | ( | float | threshold | ) |
Set the threshold for the energy-based sleeping algorithm.
Only used when the BF_energy_sleep_test flag is set.
Definition at line 233 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_sleep_linear_velocity | ( | float | velocity | ) |
Set the maximum linear velocity at which the body can go to sleep.
Definition at line 158 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_solver_iteration_count | ( | unsigned int | count | ) |
Set the number of solver iterations performed when processing joint/contacts connected to this body.
Definition at line 207 of file physxBodyDesc.cxx.
void PhysxBodyDesc::set_to_default | ( | ) | [inline] |
(re)sets the structure to the default.
Definition at line 43 of file physxBodyDesc.I.
void PhysxBodyDesc::set_wake_up_counter | ( | float | value | ) |
Set the body's initial wake up counter.
Definition at line 380 of file physxBodyDesc.cxx.