Panda3D
Public Member Functions | Public Attributes

PhysxSoftBodyDesc Class Reference

Descriptor for PhysxSoftBody. More...

#include "physxSoftBodyDesc.h"

Inheritance diagram for PhysxSoftBodyDesc:
PhysxEnums

List of all members.

Public Member Functions

float get_attachment_response_coefficient () const
float get_collision_response_coefficient () const
float get_damping_coefficient () const
float get_density () const
bool get_flag (PhysxSoftBodyFlag flag) const
float get_friction () const
LMatrix4f get_global_mat () const
LPoint3f get_global_pos () const
const char * get_name () const
float get_particle_radius () const
float get_relative_grid_spacing () const
unsigned int get_solver_iterations () const
float get_stretching_stiffness () const
float get_tear_factor () const
float get_volume_stiffness () const
bool is_valid () const
 Returns true if the descriptor is valid.
void set_attachment_response_coefficient (float coef)
void set_collision_response_coefficient (float coef)
void set_damping_coefficient (float damping)
void set_density (float density)
void set_flag (PhysxSoftBodyFlag flag, bool value)
 Raise or lower individual SoftBodyFlag flags.
void set_friction (float friction)
void set_global_hpr (float h, float p, float r)
void set_global_mat (const LMatrix4f &mat)
void set_global_pos (const LPoint3f &pos)
void set_name (const char *name)
void set_particle_radius (float radius)
void set_relative_grid_spacing (float spacing)
void set_soft_body_mesh (PhysxSoftBodyMesh *mesh)
void set_solver_iterations (unsigned int interations)
 Number of solver iterations.
void set_stretching_stiffness (float stiffness)
void set_tear_factor (float tearFactor)
void set_to_default ()
 (re)sets the structure to the default.
void set_volume_stiffness (float stiffness)

Public Attributes

NxSoftBodyDesc _desc

Detailed Description

Descriptor for PhysxSoftBody.

Definition at line 30 of file physxSoftBodyDesc.h.


Member Function Documentation

bool PhysxSoftBodyDesc::is_valid ( ) const [inline]

Returns true if the descriptor is valid.

Definition at line 56 of file physxSoftBodyDesc.I.

void PhysxSoftBodyDesc::set_flag ( PhysxSoftBodyFlag  flag,
bool  value 
)

Raise or lower individual SoftBodyFlag flags.

Definition at line 187 of file physxSoftBodyDesc.cxx.

void PhysxSoftBodyDesc::set_solver_iterations ( unsigned int  iterations)

Number of solver iterations.

Small numbers make the simulation faster while the soft body gets less stiff.

Definition at line 205 of file physxSoftBodyDesc.cxx.

void PhysxSoftBodyDesc::set_to_default ( ) [inline]

(re)sets the structure to the default.

Definition at line 44 of file physxSoftBodyDesc.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations