|
RavEngine
|
Common API base class shared by PxArticulationSpatialTendon and PxArticulationFixedTendon. More...
#include <PxArticulationTendon.h>
Public Member Functions | |
| virtual void | setStiffness (const PxReal stiffness)=0 |
| Sets the spring stiffness term acting on the tendon length. | |
| virtual PxReal | getStiffness () const =0 |
| Gets the spring stiffness of the tendon. | |
| virtual void | setDamping (const PxReal damping)=0 |
| Sets the damping term acting both on the tendon length and tendon-length limits. | |
| virtual PxReal | getDamping () const =0 |
| Gets the damping term acting both on the tendon length and tendon-length limits. | |
| virtual void | setLimitStiffness (const PxReal stiffness)=0 |
| Sets the limit stiffness term acting on the tendon's length limits. | |
| virtual PxReal | getLimitStiffness () const =0 |
| Gets the limit stiffness term acting on the tendon's length limits. | |
| virtual void | setOffset (const PxReal offset, bool autowake=true)=0 |
| Sets the length offset term for the tendon. | |
| virtual PxReal | getOffset () const =0 |
| Gets the length offset term for the tendon. | |
| virtual PxArticulationReducedCoordinate * | getArticulation () const =0 |
| Gets the articulation that the tendon is a part of. | |
| virtual void | release ()=0 |
| Releases a tendon to remove it from the articulation and free its associated memory. | |
Public Member Functions inherited from physx::PxBase | |
| virtual const char * | getConcreteTypeName () const =0 |
| Returns string name of dynamic type. | |
| 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. | |
Public Attributes | |
| void * | userData |
| user can assign this to whatever, usually to create a 1:1 relationship with a user object. | |
Protected Member Functions | |
| PX_INLINE | PxArticulationTendon (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxArticulationTendon (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. | |
| virtual bool | isKindOf (const char *superClass) const |
| Returns whether a given type name matches with the type of this instance. | |
| template<class T > | |
| bool | typeMatch () const |
Additional Inherited Members | |
Protected Attributes inherited from physx::PxBase | |
| PxType | mConcreteType |
| PxBaseFlags | mBaseFlags |
| PxU32 | mBuiltInRefCount |
Common API base class shared by PxArticulationSpatialTendon and PxArticulationFixedTendon.
|
pure virtual |
Gets the articulation that the tendon is a part of.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Gets the damping term acting both on the tendon length and tendon-length limits.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Gets the limit stiffness term acting on the tendon's length limits.
For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Gets the length offset term for the tendon.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Gets the spring stiffness of the tendon.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Releases a tendon to remove it from the articulation and free its associated memory.
When an articulation is released, its attached tendons are automatically released.
Implements physx::PxBase.
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Sets the damping term acting both on the tendon length and tendon-length limits.
| [in] | damping | The damping term. Default: 0 |
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Sets the limit stiffness term acting on the tendon's length limits.
For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
| [in] | stiffness | The limit stiffness term. Default: 0 |
Implemented in physx::NpArticulationFixedTendon, and physx::NpArticulationSpatialTendon.
|
pure virtual |
Sets the length offset term for the tendon.
An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
| [in] | offset | The offset term. Default: 0 |
| [in] | autowake | If true and the articulation is in a scene, the call wakes up the articulation and increases the wake counter to PxSceneDesc::wakeCounterResetValue if the counter value is below the reset value. |
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.
|
pure virtual |
Sets the spring stiffness term acting on the tendon length.
| [in] | stiffness | The spring stiffness. Default: 0 |
Implemented in physx::NpArticulationSpatialTendon, and physx::NpArticulationFixedTendon.