|
RavEngine
|
Material class to represent a set of surface properties. More...
#include <PxMaterial.h>
Public Member Functions | |
| virtual void | setDynamicFriction (PxReal coef)=0 |
| Sets the coefficient of dynamic friction. | |
| virtual PxReal | getDynamicFriction () const =0 |
| Retrieves the DynamicFriction value. | |
| virtual void | setStaticFriction (PxReal coef)=0 |
| Sets the coefficient of static friction. | |
| virtual PxReal | getStaticFriction () const =0 |
| Retrieves the coefficient of static friction. | |
| virtual void | setRestitution (PxReal rest)=0 |
| Sets the coefficient of restitution. | |
| virtual PxReal | getRestitution () const =0 |
| Retrieves the coefficient of restitution. | |
| virtual void | setDamping (PxReal damping)=0 |
| Sets the coefficient of damping. | |
| virtual PxReal | getDamping () const =0 |
| Retrieves the coefficient of damping. | |
| virtual void | setFlag (PxMaterialFlag::Enum flag, bool b)=0 |
| Raises or clears a particular material flag. | |
| virtual void | setFlags (PxMaterialFlags flags)=0 |
| sets all the material flags. | |
| virtual PxMaterialFlags | getFlags () const =0 |
| Retrieves the flags. See #PxMaterialFlag. | |
| virtual void | setFrictionCombineMode (PxCombineMode::Enum combMode)=0 |
| Sets the friction combine mode. | |
| virtual PxCombineMode::Enum | getFrictionCombineMode () const =0 |
| Retrieves the friction combine mode. | |
| virtual void | setRestitutionCombineMode (PxCombineMode::Enum combMode)=0 |
| Sets the restitution combine mode. | |
| virtual PxCombineMode::Enum | getRestitutionCombineMode () const =0 |
| Retrieves the restitution combine mode. | |
| virtual const char * | getConcreteTypeName () const PX_OVERRIDE |
| Returns string name of dynamic type. | |
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 | PxMaterial (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxMaterial (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::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 surface properties.
|
inlinevirtual |
Returns string name of dynamic type.
Implements physx::PxBase.
|
pure virtual |
Retrieves the coefficient of damping.
See setDamping.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the DynamicFriction value.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the flags. See #PxMaterialFlag.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the friction combine mode.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the coefficient of restitution.
See setRestitution.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the restitution combine mode.
See setRestitutionCombineMode.
Implemented in physx::NpMaterial.
|
pure virtual |
Retrieves the coefficient of static friction.
Implemented in physx::NpMaterial.
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from physx::PxBaseMaterial.
|
pure virtual |
Sets the coefficient of damping.
This property only affects the simulation if PxMaterialFlag::eCOMPLIANT_CONTACT is raised. Damping works together with spring stiffness (set through a negative restitution value). Spring stiffness corrects positional error while damping resists relative velocity. Setting a high damping coefficient can produce spongy contacts.
Sleeping: Does NOT wake any actors which may be affected.
| [in] | damping | Coefficient of damping. Range: [0,INF] |
Implemented in physx::NpMaterial.
|
pure virtual |
Sets the coefficient of dynamic friction.
The coefficient of dynamic friction should be in [0, PX_MAX_F32). If set to greater than staticFriction, the effective value of staticFriction will be increased to match.
Sleeping: Does NOT wake any actors which may be affected.
| [in] | coef | Coefficient of dynamic friction. Range: [0, PX_MAX_F32) |
Implemented in physx::NpMaterial.
|
pure virtual |
Raises or clears a particular material flag.
See the list of flags #PxMaterialFlag
Default: eIMPROVED_PATCH_FRICTION
Sleeping: Does NOT wake any actors which may be affected.
| [in] | flag | The PxMaterial flag to raise(set) or clear. |
| [in] | b | New state of the flag |
Implemented in physx::NpMaterial.
|
pure virtual |
sets all the material flags.
See the list of flags #PxMaterialFlag
Default: eIMPROVED_PATCH_FRICTION
Sleeping: Does NOT wake any actors which may be affected.
| [in] | flags | All PxMaterial flags |
Implemented in physx::NpMaterial.
|
pure virtual |
Sets the friction combine mode.
See the enum ::PxCombineMode .
Default: PxCombineMode::eAVERAGE
Sleeping: Does NOT wake any actors which may be affected.
| [in] | combMode | Friction combine mode to set for this material. See #PxCombineMode. |
Implemented in physx::NpMaterial.
|
pure virtual |
Sets the coefficient of restitution.
A coefficient of 0 makes the object bounce as little as possible, higher values up to 1.0 result in more bounce.
This property is overloaded when PxMaterialFlag::eCOMPLIANT_CONTACT flag is enabled. This permits negative values for restitution to be provided. The negative values are converted into spring stiffness terms for an implicit spring simulated at the contact site, with the spring positional error defined by the contact separation value. Higher stiffness terms produce stiffer springs that behave more like a rigid contact.
Sleeping: Does NOT wake any actors which may be affected.
| [in] | rest | Coefficient of restitution. Range: [-INF,1] |
Implemented in physx::NpMaterial.
|
pure virtual |
Sets the restitution combine mode.
See the enum ::PxCombineMode .
Default: PxCombineMode::eAVERAGE
Sleeping: Does NOT wake any actors which may be affected.
| [in] | combMode | Restitution combine mode for this material. See #PxCombineMode. |
Implemented in physx::NpMaterial.
|
pure virtual |
Sets the coefficient of static friction.
The coefficient of static friction should be in the range [0, PX_MAX_F32)
Sleeping: Does NOT wake any actors which may be affected.
| [in] | coef | Coefficient of static friction. Range: [0, PX_MAX_F32) |
Implemented in physx::NpMaterial.