15 #ifndef PHYSXMATERIAL_H 16 #define PHYSXMATERIAL_H 18 #include "pandabase.h" 21 #include "physxObject.h" 22 #include "physxEnums.h" 23 #include "physx_includes.h" 55 INLINE ~PhysxMaterial();
58 unsigned short get_material_index()
const;
63 void set_dynamic_friction(
float coef);
64 void set_static_friction(
float coef);
65 void set_restitution(
float rest);
66 void set_dynamic_friction_v(
float coef);
67 void set_static_friction_v(
float coef);
68 void set_dir_of_anisotropy(
const LVector3f dir);
69 void set_flag(PhysxMaterialFlag flag,
bool value);
70 void set_friction_combine_mode(PhysxCombineMode mode);
71 void set_restitution_combine_mode(PhysxCombineMode mode);
73 float get_dynamic_friction()
const;
74 float get_static_friction()
const;
75 float get_restitution()
const;
76 float get_dynamic_friction_v()
const;
77 float get_static_friction_v()
const;
79 bool get_flag(PhysxMaterialFlag flag)
const;
80 PhysxCombineMode get_friction_combine_mode()
const;
81 PhysxCombineMode get_restitution_combine_mode()
const;
83 INLINE
void ls()
const;
84 INLINE
void ls(ostream &out,
int indent_level=0)
const;
91 INLINE NxMaterial *ptr()
const {
return _ptr; };
93 void link(NxMaterial *ptr);
104 static void init_type() {
105 PhysxObject::init_type();
106 register_type(_type_handle,
"PhysxMaterial",
107 PhysxObject::get_class_type());
110 return get_class_type();
114 return get_class_type();
121 #include "physxMaterial.I" 123 #endif // PHYSXMATERIAL_H Descriptor class for materials.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
A scene is a collection of bodies, constraints, and effectors which can interact. ...
A class for describing a shape's surface properties.
This class exists just to provide scoping for the enums shared by PhysX classes.
TypeHandle is the identifier used to differentiate C++ class types.