29#ifndef NP_FEM_MATERIAL_H
30#define NP_FEM_MATERIAL_H
32#include "common/PxSerialFramework.h"
33#include "foundation/PxUserAllocated.h"
34#include "foundation/PxUtilities.h"
35#include "CmRefCountable.h"
36#include "PxsFEMSoftBodyMaterialCore.h"
60 void preExportDataReset() { Cm::RefCountable_preExportDataReset(*
this); }
69 virtual void onRefCountZero();
93 virtual
void setDeformThreshold(PxReal threshold);
94 virtual PxReal getDeformThreshold() const;
95 virtual
void setDeformLowLimitRatio(PxReal threshold);
96 virtual PxReal getDeformLowLimitRatio() const;
97 virtual
void setDeformHighLimitRatio(PxReal threshold);
98 virtual PxReal getDeformHighLimitRatio() const;
114 for (PxU32 i = 0; i < materialCount; i++)
Definition NpFEMSoftBodyMaterial.h:46
virtual void setDampingScale(PxReal scale)
Sets material damping scale. A scale of 1 corresponds to default damping, a value of 0 will only appl...
virtual void setPoissons(PxReal poisson) PX_OVERRIDE
Sets the Poisson's ratio which defines the body's volume preservation. Completely incompressible mate...
virtual PxReal getDampingScale() const
Retrieves material damping scale.
virtual void acquireReference()
Acquires a counted reference to this object.
virtual void setYoungsModulus(PxReal young) PX_OVERRIDE
Sets young's modulus which defines the body's stiffness.
virtual void setDamping(PxReal damping) PX_OVERRIDE
Sets material velocity damping term.
virtual PxReal getDamping() const PX_OVERRIDE
Retrieves velocity damping.
virtual PxU32 getReferenceCount() const
Returns the reference count of the object.
virtual void setDynamicFriction(PxReal threshold) PX_OVERRIDE
Sets the dynamic friction value which defines the strength of resistance when two objects slide relat...
virtual PxReal getDynamicFriction() const PX_OVERRIDE
Retrieves the dynamic friction value.
virtual void release()
Decrements the reference count of the object and releases it if the new reference count is zero.
virtual PxReal getYoungsModulus() const PX_OVERRIDE
Retrieves the young's modulus value.
virtual PxReal getPoissons() const PX_OVERRIDE
Retrieves the Poisson's ratio.
Binary deserialization context class.
Definition PxSerialFramework.h:174
Material class to represent a set of softbody FEM material properties.
Definition PxFEMSoftBodyMaterial.h:49
Output stream class for I/O.
Definition PxIO.h:114
Callback class used to process PxBase objects.
Definition PxSerialFramework.h:81
Binary serialization context class.
Definition PxSerialFramework.h:99
Definition PxUserAllocated.h:43
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#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