14 #ifndef PHYSXMATERIAL_H 15 #define PHYSXMATERIAL_H 51 unsigned short get_material_index()
const;
56 void set_dynamic_friction(
float coef);
57 void set_static_friction(
float coef);
58 void set_restitution(
float rest);
59 void set_dynamic_friction_v(
float coef);
60 void set_static_friction_v(
float coef);
61 void set_dir_of_anisotropy(
const LVector3f dir);
62 void set_flag(PhysxMaterialFlag flag,
bool value);
63 void set_friction_combine_mode(PhysxCombineMode mode);
64 void set_restitution_combine_mode(PhysxCombineMode mode);
66 float get_dynamic_friction()
const;
67 float get_static_friction()
const;
68 float get_restitution()
const;
69 float get_dynamic_friction_v()
const;
70 float get_static_friction_v()
const;
71 LVector3f get_dir_of_anisotropy()
const;
72 bool get_flag(PhysxMaterialFlag flag)
const;
73 PhysxCombineMode get_friction_combine_mode()
const;
74 PhysxCombineMode get_restitution_combine_mode()
const;
76 INLINE
void ls()
const;
77 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
83 INLINE NxMaterial *ptr()
const {
return _ptr; };
85 void link(NxMaterial *ptr);
95 static void init_type() {
96 PhysxObject::init_type();
98 PhysxObject::get_class_type());
101 return get_class_type();
105 return get_class_type();
114 #endif // PHYSXMATERIAL_H Descriptor class for materials.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.