|
RavEngine
|
Material class to represent a set of MPM particle material properties. More...
#include <PxMPMMaterial.h>
Public Member Functions | |
| virtual void | setStretchAndShearDamping (PxReal stretchAndShearDamping)=0 |
| Sets stretch and shear damping which dampens stretch and shear motion of MPM bodies. The effect is comparable to viscosity for fluids. | |
| virtual PxReal | getStretchAndShearDamping () const =0 |
| Retrieves the stretch and shear damping. | |
| virtual void | setRotationalDamping (PxReal rotationalDamping)=0 |
| Sets the rotational damping which dampens rotations of mpm bodies. | |
| virtual PxReal | getRotationalDamping () const =0 |
| Retrieves the rotational damping. | |
| virtual void | setDensity (PxReal density)=0 |
| Sets density which influences the body's weight. | |
| virtual PxReal | getDensity () const =0 |
| Retrieves the density value. | |
| virtual void | setMaterialModel (PxMPMMaterialModel::Enum materialModel)=0 |
| Sets the material model which influences interaction between MPM particles. | |
| virtual PxMPMMaterialModel::Enum | getMaterialModel () const =0 |
| Retrieves the material model. | |
| virtual void | setCuttingFlags (PxMPMCuttingFlags cuttingFlags)=0 |
| Sets the cutting flags which can enable damage tracking or thin blade support. | |
| virtual PxMPMCuttingFlags | getCuttingFlags () const =0 |
| Retrieves the cutting flags. | |
| virtual void | setSandFrictionAngle (PxReal sandFrictionAngle)=0 |
| Sets the sand friction angle, only applied if the material model is set to sand. | |
| virtual PxReal | getSandFrictionAngle () const =0 |
| Retrieves the sand friction angle. | |
| virtual void | setYieldStress (PxReal yieldStress)=0 |
| Sets the yield stress, only applied if the material model is set to Von Mises. | |
| virtual PxReal | getYieldStress () const =0 |
| Retrieves the yield stress. | |
| virtual void | setIsPlastic (bool isPlastic)=0 |
| Set material to plastic. | |
| virtual bool | getIsPlastic () const =0 |
| Returns true if material is plastic. | |
| virtual void | setYoungsModulus (PxReal young)=0 |
| Sets Young's modulus which defines the body's stiffness. | |
| virtual PxReal | getYoungsModulus () const =0 |
| Retrieves the Young's modulus value. | |
| virtual void | setPoissons (PxReal poisson)=0 |
| Sets Poisson's ratio defines the body's volume preservation. Completely incompressible materials have a Poisson ratio of 0.5 which will lead to numerical problems. | |
| virtual PxReal | getPoissons () const =0 |
| Retrieves the Poisson's ratio. | |
| virtual void | setHardening (PxReal hardening)=0 |
| Sets material hardening coefficient. | |
| virtual PxReal | getHardening () const =0 |
| Retrieves the hardening coefficient. | |
| virtual void | setCriticalCompression (PxReal criticalCompression)=0 |
| Sets material critical compression coefficient. | |
| virtual PxReal | getCriticalCompression () const =0 |
| Retrieves the critical compression coefficient. | |
| virtual void | setCriticalStretch (PxReal criticalStretch)=0 |
| Sets material critical stretch coefficient. | |
| virtual PxReal | getCriticalStretch () const =0 |
| Retrieves the critical stretch coefficient. | |
| virtual void | setTensileDamageSensitivity (PxReal tensileDamageSensitivity)=0 |
| Sets material tensile damage sensitivity coefficient. | |
| virtual PxReal | getTensileDamageSensitivity () const =0 |
| Retrieves the tensile damage sensitivity coefficient. | |
| virtual void | setCompressiveDamageSensitivity (PxReal compressiveDamageSensitivity)=0 |
| Sets material compressive damage sensitivity coefficient. | |
| virtual PxReal | getCompressiveDamageSensitivity () const =0 |
| Retrieves the compressive damage sensitivity coefficient. | |
| virtual void | setAttractiveForceResidual (PxReal attractiveForceResidual)=0 |
| Sets material attractive force residual coefficient. | |
| virtual PxReal | getAttractiveForceResidual () const =0 |
| Retrieves the attractive force residual coefficient. | |
| virtual const char * | getConcreteTypeName () const |
| Returns string name of dynamic type. | |
Public Member Functions inherited from physx::PxParticleMaterial | |
| virtual void | setFriction (PxReal friction)=0 |
| Sets friction. | |
| virtual PxReal | getFriction () const =0 |
| Retrieves the friction value. | |
| virtual void | setDamping (PxReal damping)=0 |
| Sets velocity damping term. | |
| virtual PxReal | getDamping () const =0 |
| Retrieves the velocity damping term. | |
| virtual void | setAdhesion (PxReal adhesion)=0 |
| Sets adhesion term. | |
| virtual PxReal | getAdhesion () const =0 |
| Retrieves the adhesion term. | |
| virtual void | setGravityScale (PxReal scale)=0 |
| Sets gravity scale term. | |
| virtual PxReal | getGravityScale () const =0 |
| Retrieves the gravity scale term. | |
| virtual void | setAdhesionRadiusScale (PxReal scale)=0 |
| Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate. | |
| virtual PxReal | getAdhesionRadiusScale () const =0 |
| Retrieves the adhesion radius scale. | |
Public Member Functions inherited from physx::PxBaseMaterial | |
| PX_INLINE | PxBaseMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxBaseMaterial (PxBaseFlags baseFlags) |
Public Member Functions inherited from physx::PxRefCounted | |
| virtual void | release ()=0 |
| Decrements the reference count of the object and releases it if the new reference count is zero. | |
| virtual PxU32 | getReferenceCount () const =0 |
| Returns the reference count of the object. | |
| virtual void | acquireReference ()=0 |
| Acquires a counted reference to this object. | |
Public Member Functions inherited from physx::PxBase | |
| template<class T > | |
| T * | is () |
| template<class T > | |
| const T * | is () const |
| PX_FORCE_INLINE PxType | getConcreteType () const |
| Returns concrete type of object. | |
| PX_FORCE_INLINE void | setBaseFlag (PxBaseFlag::Enum flag, bool value) |
| Set PxBaseFlag | |
| PX_FORCE_INLINE void | setBaseFlags (PxBaseFlags inFlags) |
| Set PxBaseFlags | |
| PX_FORCE_INLINE PxBaseFlags | getBaseFlags () const |
| Returns PxBaseFlags. | |
| virtual bool | isReleasable () const |
| Whether the object is subordinate. | |
Protected Member Functions | |
| PX_INLINE | PxMPMMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxMPMMaterial (PxBaseFlags baseFlags) |
| virtual bool | isKindOf (const char *name) const |
| Returns whether a given type name matches with the type of this instance. | |
Protected Member Functions inherited from physx::PxParticleMaterial | |
| PX_INLINE | PxParticleMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxParticleMaterial (PxBaseFlags baseFlags) |
Protected Member Functions inherited from physx::PxRefCounted | |
| virtual void | onRefCountZero () |
| PX_INLINE | PxRefCounted (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxRefCounted (PxBaseFlags baseFlags) |
Protected Member Functions inherited from physx::PxBase | |
| PX_INLINE | PxBase (PxType concreteType, PxBaseFlags baseFlags) |
| Constructor setting concrete type and base flags. | |
| PX_INLINE | PxBase (PxBaseFlags baseFlags) |
| Deserialization constructor setting base flags. | |
| virtual | ~PxBase () |
| Destructor. | |
| template<class T > | |
| bool | typeMatch () const |
Additional Inherited Members | |
Public Attributes inherited from physx::PxBaseMaterial | |
| void * | userData |
| user can assign this to whatever, usually to create a 1:1 relationship with a user object. | |
Protected Attributes inherited from physx::PxBase | |
| PxType | mConcreteType |
| PxBaseFlags | mBaseFlags |
| PxU32 | mBuiltInRefCount |
Material class to represent a set of MPM particle material properties.
|
pure virtual |
Retrieves the attractive force residual coefficient.
|
pure virtual |
Retrieves the compressive damage sensitivity coefficient.
|
inlinevirtual |
Returns string name of dynamic type.
Implements physx::PxBase.
|
pure virtual |
Retrieves the critical compression coefficient.
|
pure virtual |
Retrieves the critical stretch coefficient.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Retrieves the stretch and shear damping.
|
pure virtual |
Retrieves the tensile damage sensitivity coefficient.
|
pure virtual |
|
pure virtual |
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from physx::PxParticleMaterial.
|
pure virtual |
Sets material attractive force residual coefficient.
Relative amount of attractive force a fully damaged particle can exert on other particles compared to an undamaged one. Range: [0, 1]
| [in] | attractiveForceResidual | Material attractive force residual coefficient. |
|
pure virtual |
Sets material compressive damage sensitivity coefficient.
Sensitivity to compressive loads. The higher the sensitivity, the quicker damage will occur under compressive loads Range: [0, PX_MAX_U32)
| [in] | compressiveDamageSensitivity | Material compressive damage sensitivity coefficient. |
|
pure virtual |
Sets material critical compression coefficient.
Compression clamping threshold (higher means more compression is allowed before yield). Range: [0, 1)
| [in] | criticalCompression | Material critical compression coefficient. |
|
pure virtual |
Sets material critical stretch coefficient.
Stretch clamping threshold (higher means more stretching is allowed before yield). Range: [0, 1]
| [in] | criticalStretch | Material critical stretch coefficient. |
|
pure virtual |
Sets the cutting flags which can enable damage tracking or thin blade support.
| [in] | cuttingFlags | The cutting flags |
|
pure virtual |
Sets density which influences the body's weight.
| [in] | density | The material's density |
|
pure virtual |
Sets material hardening coefficient.
Tendency to get more rigid under compression. Range: [0, PX_MAX_F32)
| [in] | hardening | Material hardening coefficient. |
|
pure virtual |
|
pure virtual |
Sets the material model which influences interaction between MPM particles.
| [in] | materialModel | The material model |
|
pure virtual |
Sets Poisson's ratio defines the body's volume preservation. Completely incompressible materials have a Poisson ratio of 0.5 which will lead to numerical problems.
| [in] | poisson | Poisson's ratio. Range: [0, 0.5) |
|
pure virtual |
Sets the rotational damping which dampens rotations of mpm bodies.
| [in] | rotationalDamping | The rotational damping |
|
pure virtual |
Sets the sand friction angle, only applied if the material model is set to sand.
| [in] | sandFrictionAngle | The sand friction angle |
|
pure virtual |
Sets stretch and shear damping which dampens stretch and shear motion of MPM bodies. The effect is comparable to viscosity for fluids.
| [in] | stretchAndShearDamping | The stretch and shear damping |
|
pure virtual |
Sets material tensile damage sensitivity coefficient.
Sensitivity to tensile loads. The higher the sensitivity, the quicker damage will occur under tensile loads. Range: [0, PX_MAX_U32)
| [in] | tensileDamageSensitivity | Material tensile damage sensitivity coefficient. |
|
pure virtual |
Sets the yield stress, only applied if the material model is set to Von Mises.
| [in] | yieldStress | The yield stress |
|
pure virtual |
Sets Young's modulus which defines the body's stiffness.
| [in] | young | Young's modulus. Range: [0, PX_MAX_F32) |