26 _desc.restitution = restitution;
37 _desc.staticFriction = coef;
49 _desc.dynamicFriction = coef;
60 _desc.staticFrictionV = coef;
71 _desc.dynamicFrictionV = coef;
84 _desc.flags &= ~(flag);
106 _desc.frictionCombineMode = (NxCombineMode)mode;
117 _desc.restitutionCombineMode = (NxCombineMode)mode;
126 return _desc.restitution;
135 return _desc.staticFriction;
144 return _desc.dynamicFriction;
154 return _desc.staticFrictionV;
164 return _desc.dynamicFrictionV;
173 return (_desc.flags & flag) ? true :
false;
191 return (PhysxCombineMode)_desc.frictionCombineMode;
200 return (PhysxCombineMode)_desc.restitutionCombineMode;
float get_static_friction_v() const
Returns the anisotropic static friction coefficient for along the secondary (V) axis of anisotropy.
void set_dynamic_friction_v(float coef)
Sets the anisotropic dynamic friction coefficient for along the secondary (V) axis of anisotropy.
void set_flag(PhysxMaterialFlag flag, bool value)
Sets flags which control the behavior of a material.
float get_restitution() const
Returns the coefficient of restitution.
PhysxCombineMode get_restitution_combine_mode() const
Returns the restitution combine mode.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LVector3f get_dir_of_anisotropy() const
Returns the shape space direction (unit vector) of anisotropy.
bool get_flag(PhysxMaterialFlag flag) const
Returns flags which control the behavior of a material.
void set_dynamic_friction(float coef)
Sets the coefficient of dynamic friction – should be in [0, +inf].
void set_dir_of_anisotropy(const LVector3f dir)
Sets the shape space direction (unit vector) of anisotropy.
void set_restitution(float rest)
Sets the coefficient of restitution – 0 makes the object bounce as little as possible,...
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
float get_dynamic_friction() const
Returns the coefficient of dynamic friction.
float get_dynamic_friction_v() const
Returns the anisotropic dynamic friction coefficient for along the secondary (V) axis of anisotropy.
void set_friction_combine_mode(PhysxCombineMode mode)
Sets the friction combine mode.
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.
PhysxCombineMode get_friction_combine_mode() const
Returns the friction combine mode.
void set_restitution_combine_mode(PhysxCombineMode mode)
Sets the restitution combine mode.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_static_friction_v(float coef)
Sets the anisotropic static friction coefficient for along the secondary (V) axis of anisotropy.