15 #ifndef PHYSXMATERIALDESC_H 16 #define PHYSXMATERIALDESC_H 18 #include "pandabase.h" 20 #include "physxEnums.h" 21 #include "physx_includes.h" 31 INLINE ~PhysxMaterialDesc();
33 INLINE
void set_to_default();
34 INLINE
bool is_valid()
const;
36 void set_dynamic_friction(
float coef);
37 void set_static_friction(
float coef);
38 void set_restitution(
float rest);
39 void set_dynamic_friction_v(
float coef);
40 void set_static_friction_v(
float coef);
41 void set_dir_of_anisotropy(
const LVector3f dir);
42 void set_flag(PhysxMaterialFlag flag,
bool value);
43 void set_friction_combine_mode(PhysxCombineMode mode);
44 void set_restitution_combine_mode(PhysxCombineMode mode);
46 float get_dynamic_friction()
const;
47 float get_static_friction()
const;
48 float get_restitution()
const;
49 float get_dynamic_friction_v()
const;
50 float get_static_friction_v()
const;
52 bool get_flag(PhysxMaterialFlag flag)
const;
53 PhysxCombineMode get_friction_combine_mode()
const;
54 PhysxCombineMode get_restitution_combine_mode()
const;
60 #include "physxMaterialDesc.I" 62 #endif // PHYSXMATERIALDESC_H Descriptor class for materials.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This class exists just to provide scoping for the enums shared by PhysX classes.