PxDeformableSurfaceMaterial#
Defined in include/PxDeformableSurfaceMaterial.h
-
class PxDeformableSurfaceMaterial : public PxDeformableMaterial#
Material class to represent surface deformable material properties.
Public Functions
-
virtual void setThickness(PxReal thickness) = 0#
Sets material thickness.
Default: 0.001
See also
- Parameters:
thickness – [in] Material thickness.
-
virtual PxReal getThickness() const = 0#
Retrieves the material thickness.
Default: 0.001
See also
- Returns:
thickness.
-
virtual void setBendingStiffness(PxReal bendingStiffness) = 0#
Sets material bending stiffness.
Default: 0.0
See also
- Parameters:
bendingStiffness – [in] Material bending stiffness.
-
virtual PxReal getBendingStiffness() const = 0#
Retrieves the material bending stiffness.
See also
- Returns:
bendingStiffness.
-
virtual void setBendingDamping(PxReal bendingDamping) = 0#
Sets material bending damping.
See also
- Parameters:
bendingDamping – [in] Material bending damping.
-
virtual PxReal getBendingDamping() const = 0#
Retrieves the material bending damping.
See also
- Returns:
bending damping.
- inline virtual const char *getConcreteTypeName(
Gets the concrete type name.
- Returns:
The name of the concrete type.
-
virtual void setYoungsModulus(PxReal young) = 0#
Sets young’s modulus which defines the body’s stiffness.
Default: 1.e6
See also
- Parameters:
young – [in] Young’s modulus. Range: [0, PX_MAX_F32)
-
virtual PxReal getYoungsModulus() const = 0#
Retrieves the young’s modulus value.
See also
- Returns:
The young’s modulus value.
-
virtual void setPoissons(PxReal poisson) = 0#
Sets the Poisson’s ratio which defines the body’s volume preservation.
Default: 0.45
See also
- Parameters:
poisson – [in] Poisson’s ratio. Range: [0, 0.5]
-
virtual PxReal getPoissons() const = 0#
Retrieves the Poisson’s ratio.
See also
- Returns:
The Poisson’s ratio.
-
virtual void setDynamicFriction(PxReal dynamicFriction) = 0#
Sets the dynamic friction value which defines the strength of resistance when two objects slide relative to each other while in contact.
Default: 0.0
See also
- Parameters:
dynamicFriction – [in] The dynamic friction value. Range: [0, PX_MAX_F32)
-
virtual PxReal getDynamicFriction() const = 0#
Retrieves the dynamic friction value.
See also
- Returns:
The dynamic friction value
-
virtual void setElasticityDamping(PxReal elasticityDamping) = 0#
Sets material damping.
See also
getDamping()
- Parameters:
elasticityDamping – [in] Material damping.
-
virtual PxReal getElasticityDamping() const = 0#
Retrieves the material damping.
See also
setDamping()
- Returns:
damping.
-
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.
At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically.
- Returns:
the current reference count.
-
virtual void acquireReference() = 0#
Acquires a counted reference to this object.
This method increases the reference count of the object by 1. Decrement the reference count by calling release()
-
inline PxType getConcreteType() const#
Returns concrete type of object.
See also
- Returns:
PxConcreteType::Enum of serialized object
-
inline void setBaseFlag(PxBaseFlag::Enum flag, bool value)#
Set PxBaseFlag
- Parameters:
flag – [in] The flag to be set
value – [in] The flags new value
-
inline void setBaseFlags(PxBaseFlags inFlags)#
Set PxBaseFlags
See also
PxBaseFlags
- Parameters:
inFlags – [in] The flags to be set
-
inline PxBaseFlags getBaseFlags() const#
Returns PxBaseFlags.
See also
PxBaseFlags
- Returns:
PxBaseFlags
-
inline virtual bool isReleasable() const#
Whether the object is subordinate.
A class is subordinate, if it can only be instantiated in the context of another class.
See also
- Returns:
Whether the class is subordinate
Public Members
-
void *userData#
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Protected Functions
- inline PxDeformableSurfaceMaterial(
- PxType concreteType,
- PxBaseFlags baseFlags,
-
inline PxDeformableSurfaceMaterial(PxBaseFlags baseFlags)#
-
inline virtual ~PxDeformableSurfaceMaterial()#
-
inline virtual bool isKindOf(const char *name) const#
Returns whether a given type name matches with the type of this instance.
-
inline virtual void onRefCountZero()#
-
template<class T>
inline bool typeMatch() const#
-
virtual void setThickness(PxReal thickness) = 0#