Panda3D
Public Member Functions | Public Attributes

PhysxClothDesc Class Reference

Descriptor for PhysxCloth. More...

#include "physxClothDesc.h"

Inheritance diagram for PhysxClothDesc:
PhysxEnums

List of all members.

Public Member Functions

float get_bending_stiffness () const
float get_damping_coefficient () const
float get_density () const
bool get_flag (PhysxClothFlag flag) const
float get_friction () const
LMatrix4f get_global_mat () const
LPoint3f get_global_pos () const
const char * get_name () const
float get_pressure () const
unsigned int get_solver_iterations () const
float get_stretching_stiffness () const
float get_tear_factor () const
float get_thickness () const
bool is_valid () const
 Returns true if the descriptor is valid.
void set_bending_stiffness (float stiffness)
void set_cloth_mesh (PhysxClothMesh *mesh)
void set_damping_coefficient (float damping)
void set_density (float density)
void set_flag (PhysxClothFlag flag, bool value)
 Raise or lower individual ClothFlag 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_pressure (float pressure)
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_thickness (float thickness)
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxClothDesc _desc

Detailed Description

Descriptor for PhysxCloth.

Definition at line 30 of file physxClothDesc.h.


Member Function Documentation

bool PhysxClothDesc::is_valid ( ) const [inline]

Returns true if the descriptor is valid.

Definition at line 56 of file physxClothDesc.I.

void PhysxClothDesc::set_flag ( PhysxClothFlag  flag,
bool  value 
)

Raise or lower individual ClothFlag flags.

Definition at line 165 of file physxClothDesc.cxx.

void PhysxClothDesc::set_solver_iterations ( unsigned int  iterations)

Number of solver iterations.

Small numbers make the simulation faster while the cloth gets less stiff.

Definition at line 183 of file physxClothDesc.cxx.

void PhysxClothDesc::set_to_default ( ) [inline]

(re)sets the structure to the default.

Definition at line 44 of file physxClothDesc.I.


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