35#include "PxBaseMaterial.h"
348 PX_INLINE PxMaterial(PxBaseFlags baseFlags) : PxBaseMaterial(baseFlags) {}
349 virtual ~PxMaterial() {}
Base material class.
Definition PxBaseMaterial.h:49
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxBaseMaterial.h:54
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
Material class to represent a set of surface properties.
Definition PxMaterial.h:149
virtual PxCombineMode::Enum getFrictionCombineMode() const =0
Retrieves the friction combine mode.
virtual PxReal getStaticFriction() const =0
Retrieves the coefficient of static friction.
virtual PxCombineMode::Enum getRestitutionCombineMode() const =0
Retrieves the restitution combine mode.
virtual void setFlags(PxMaterialFlags flags)=0
sets all the material flags.
virtual void setRestitutionCombineMode(PxCombineMode::Enum combMode)=0
Sets the restitution combine mode.
virtual void setRestitution(PxReal rest)=0
Sets the coefficient of restitution.
virtual PxReal getDamping() const =0
Retrieves the coefficient of damping.
virtual void setDynamicFriction(PxReal coef)=0
Sets the coefficient of dynamic friction.
virtual PxReal getDynamicFriction() const =0
Retrieves the DynamicFriction value.
virtual PxReal getRestitution() const =0
Retrieves the coefficient of restitution.
virtual void setFlag(PxMaterialFlag::Enum flag, bool b)=0
Raises or clears a particular material flag.
virtual void setDamping(PxReal damping)=0
Sets the coefficient of damping.
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxMaterial.h:350
virtual PxMaterialFlags getFlags() const =0
Retrieves the flags. See #PxMaterialFlag.
virtual void setStaticFriction(PxReal coef)=0
Sets the coefficient of static friction.
virtual const char * getConcreteTypeName() const PX_OVERRIDE
Returns string name of dynamic type.
Definition PxMaterial.h:343
virtual void setFrictionCombineMode(PxCombineMode::Enum combMode)=0
Sets the friction combine mode.
#define PX_OVERRIDE
Definition PxPreprocessor.h:375
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxFlags< PxMaterialFlag::Enum, PxU16 > PxMaterialFlags
collection of set bits defined in PxMaterialFlag.
Definition PxMaterial.h:107
Enumeration that determines the way in which two material properties will be combined to yield a fric...
Definition PxMaterial.h:131
Enum
Definition PxMaterial.h:133
Flags which control the behavior of a material.
Definition PxMaterial.h:50
Enum
Definition PxMaterial.h:52
@ eDISABLE_STRONG_FRICTION
Whether to use strong friction. The difference between "normal" and "strong" friction is that the str...
Definition PxMaterial.h:78
@ eCOMPLIANT_CONTACT
This flag has the effect of enabling an implicit spring model for the normal force computation.
Definition PxMaterial.h:98
@ eDISABLE_FRICTION
If this flag is set, friction computations are always skipped between shapes with this material and a...
Definition PxMaterial.h:57
@ eIMPROVED_PATCH_FRICTION
Whether to use the patch friction model. This flag only has an effect if PxFrictionType::ePATCH frict...
Definition PxMaterial.h:92