14#ifndef PHYSXMATERIALDESC_H
15#define PHYSXMATERIALDESC_H
25class EXPCL_PANDAPHYSX PhysxMaterialDesc :
public PhysxEnums {
28 INLINE PhysxMaterialDesc();
29 INLINE ~PhysxMaterialDesc();
40 void set_flag(PhysxMaterialFlag flag,
bool value);
50 bool get_flag(PhysxMaterialFlag flag)
const;
This class exists just to provide scoping for the enums shared by PhysX classes.
void set_dynamic_friction_v(float coef)
Sets the anisotropic dynamic friction coefficient for along the secondary (V) axis of anisotropy.
void set_dynamic_friction(float coef)
Sets the coefficient of dynamic friction – should be in [0, +inf].
float get_restitution() const
Returns the coefficient of restitution.
void set_restitution(float rest)
Sets the coefficient of restitution – 0 makes the object bounce as little as possible,...
void set_friction_combine_mode(PhysxCombineMode mode)
Sets the friction combine mode.
float get_dynamic_friction_v() const
Returns the anisotropic dynamic friction coefficient for along the secondary (V) axis of anisotropy.
void set_restitution_combine_mode(PhysxCombineMode mode)
Sets the restitution combine mode.
float get_dynamic_friction() const
Returns the coefficient of dynamic friction.
void set_static_friction(float coef)
Sets the coefficient of static friction – should be in [0, +inf].
float get_static_friction() const
Retruns the coefficient of static friction.
void set_flag(PhysxMaterialFlag flag, bool value)
Sets flags which control the behavior of a material.
void set_dir_of_anisotropy(const LVector3f dir)
Sets the shape space direction (unit vector) of anisotropy.
PhysxCombineMode get_friction_combine_mode() const
Returns the friction combine mode.
LVector3f get_dir_of_anisotropy() const
Returns the shape space direction (unit vector) of anisotropy.
bool is_valid() const
Returns true if the descriptor is valid.
PhysxCombineMode get_restitution_combine_mode() const
Returns the restitution combine mode.
float get_static_friction_v() const
Returns the anisotropic static friction coefficient for along the secondary (V) axis of anisotropy.
void set_static_friction_v(float coef)
Sets the anisotropic static friction coefficient for along the secondary (V) axis of anisotropy.
bool get_flag(PhysxMaterialFlag flag) const
Returns flags which control the behavior of a material.
void set_to_default()
(re)sets the structure to the default.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.