|
RavEngine
|
Material class to represent a set of softbody FEM material properties. More...
#include <PxFEMSoftBodyMaterial.h>
Public Member Functions | |
| virtual void | setDamping (PxReal damping)=0 |
| Sets material velocity damping term. | |
| virtual PxReal | getDamping () const =0 |
| Retrieves velocity damping. | |
| virtual void | setDampingScale (PxReal scale)=0 |
| Sets material damping scale. A scale of 1 corresponds to default damping, a value of 0 will only apply damping to certain motions leading to special effects that look similar to water filled softbodies. | |
| virtual PxReal | getDampingScale () const =0 |
| Retrieves material damping scale. | |
| virtual const char * | getConcreteTypeName () const |
| Returns string name of dynamic type. | |
Public Member Functions inherited from physx::PxFEMMaterial | |
| 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 the Poisson's ratio which defines the body's volume preservation. Completely incompressible materials have a poisson ratio of 0.5. Its value should not be set to exactly 0.5 because this leads to numerical problems. | |
| virtual PxReal | getPoissons () const =0 |
| Retrieves 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. | |
| virtual PxReal | getDynamicFriction () const =0 |
| Retrieves the dynamic friction value. | |
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 | PxFEMSoftBodyMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxFEMSoftBodyMaterial (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::PxFEMMaterial | |
| PX_INLINE | PxFEMMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxFEMMaterial (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 softbody FEM material properties.
|
inlinevirtual |
Returns string name of dynamic type.
Implements physx::PxBase.
|
pure virtual |
Retrieves velocity damping.
Implemented in physx::NpFEMSoftBodyMaterial.
|
pure virtual |
Retrieves material damping scale.
Implemented in physx::NpFEMSoftBodyMaterial.
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from physx::PxFEMMaterial.
|
pure virtual |
Sets material velocity damping term.
| [in] | damping | Material velocity damping term. Range: [0, PX_MAX_F32) |
Implemented in physx::NpFEMSoftBodyMaterial.
|
pure virtual |
Sets material damping scale. A scale of 1 corresponds to default damping, a value of 0 will only apply damping to certain motions leading to special effects that look similar to water filled softbodies.
| [in] | scale | Damping scale term. Default: 1 Range: [0, 1] |
Implemented in physx::NpFEMSoftBodyMaterial.