RavEngine
Loading...
Searching...
No Matches
physx::NpArticulationSpatialTendon Class Reference
Inheritance diagram for physx::NpArticulationSpatialTendon:
[legend]
Collaboration diagram for physx::NpArticulationSpatialTendon:
[legend]

Public Member Functions

 NpArticulationSpatialTendon (PxBaseFlags baseFlags)
 
void preExportDataReset ()
 
virtual void exportExtraData (PxSerializationContext &)
 
void importExtraData (PxDeserializationContext &)
 
void resolveReferences (PxDeserializationContext &)
 
virtual void requiresObjects (PxProcessPxBaseCallback &)
 
virtual bool isSubordinate () const
 
 NpArticulationSpatialTendon (NpArticulationReducedCoordinate *articulation)
 
virtual PxArticulationAttachment * createAttachment (PxArticulationAttachment *parent, const PxReal coefficient, const PxVec3 relativeOffset, PxArticulationLink *link)
 Creates an articulation attachment and adds it to the list of children in the parent attachment.
 
NpArticulationAttachment * getAttachment (const PxU32 index)
 
virtual PxU32 getAttachments (PxArticulationAttachment **userBuffer, PxU32 bufferSize, PxU32 startIndex) const
 Fills a user-provided buffer of attachment pointers with the set of attachments.
 
PxU32 getNbAttachments () const
 Returns the number of attachments in the tendon.
 
virtual void setStiffness (const PxReal stiffness)
 Sets the spring stiffness term acting on the tendon length.
 
virtual PxReal getStiffness () const
 Gets the spring stiffness of the tendon.
 
virtual void setDamping (const PxReal damping)
 Sets the damping term acting both on the tendon length and tendon-length limits.
 
virtual PxReal getDamping () const
 Gets the damping term acting both on the tendon length and tendon-length limits.
 
virtual void setLimitStiffness (const PxReal stiffness)
 Sets the limit stiffness term acting on the tendon's length limits.
 
virtual PxReal getLimitStiffness () const
 Gets the limit stiffness term acting on the tendon's length limits.
 
virtual void setOffset (const PxReal offset, bool autowake=true)
 Sets the length offset term for the tendon.
 
virtual PxReal getOffset () const
 Gets the length offset term for the tendon.
 
virtual PxArticulationReducedCoordinate * getArticulation () const
 Gets the articulation that the tendon is a part of.
 
virtual void release ()
 Releases a tendon to remove it from the articulation and free its associated memory.
 
PX_FORCE_INLINE Sc::ArticulationSpatialTendonCore & getTendonCore ()
 
PX_FORCE_INLINE ArticulationTendonHandle getHandle ()
 
PX_FORCE_INLINE void setHandle (ArticulationTendonHandle handle)
 
PX_FORCE_INLINE NpArticulationAttachmentArray & getAttachments ()
 
- Public Member Functions inherited from physx::PxArticulationSpatialTendon
virtual const char * getConcreteTypeName () const
 Returns the string name of the dynamic type.
 
- 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.
 
- Public Member Functions inherited from physx::NpBase
 NpBase (const PxEMPTY)
 
 NpBase (NpType::Enum type)
 
PX_INLINE bool isAPIWriteForbidden () const
 
PX_INLINE bool isAPIWriteForbiddenExceptSplitSim () const
 
PX_FORCE_INLINE NpType::Enum getNpType () const
 
PX_FORCE_INLINE void setNpScene (NpScene *scene)
 
PX_FORCE_INLINE NpScene * getNpScene () const
 
PX_FORCE_INLINE PxU32 getBaseIndex () const
 
PX_FORCE_INLINE void setBaseIndex (PxU32 index)
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Static Public Member Functions

static NpArticulationSpatialTendon * createObject (PxU8 *&address, PxDeserializationContext &context)
 
static void getBinaryMetaData (PxOutputStream &stream)
 
- Static Public Member Functions inherited from physx::NpBase
static void getBinaryMetaData (PxOutputStream &stream)
 

Additional Inherited Members

- Public Attributes inherited from physx::PxArticulationTendon
void * userData
 user can assign this to whatever, usually to create a 1:1 relationship with a user object.
 
- Protected Member Functions inherited from physx::PxArticulationSpatialTendon
PX_INLINE PxArticulationSpatialTendon (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxArticulationSpatialTendon (PxBaseFlags baseFlags)
 
- Protected Member Functions inherited from physx::PxArticulationTendon
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
 
- Protected Attributes inherited from physx::PxBase
PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 
- Protected Attributes inherited from physx::NpBase
PxU32 mFreeSlot
 

Member Function Documentation

◆ createAttachment()

PxArticulationAttachment * NpArticulationSpatialTendon::createAttachment ( PxArticulationAttachment *  parent,
const PxReal  coefficient,
const PxVec3  relativeOffset,
PxArticulationLink *  link 
)
virtual

Creates an articulation attachment and adds it to the list of children in the parent attachment.

Creating an attachment is not allowed while the articulation is in a scene. In order to add the attachment, remove and then re-add the articulation to the scene.

Parameters
[in]parentThe parent attachment. Can be NULL for the root attachment of a tendon.
[in]coefficientA user-defined scale that the accumulated length is scaled by.
[in]relativeOffsetAn offset vector in the link's actor frame to the point where the tendon attachment is attached to the link.
[in]linkThe link that this attachment is associated with.
Returns
The newly-created attachment if creation was successful, otherwise a null pointer.
See also
releaseAttachment()

Implements physx::PxArticulationSpatialTendon.

◆ getArticulation()

PxArticulationReducedCoordinate * physx::NpArticulationSpatialTendon::getArticulation ( ) const
virtual

Gets the articulation that the tendon is a part of.

Returns
The articulation.
See also
PxArticulationReducedCoordinate

Implements physx::PxArticulationTendon.

◆ getAttachments()

PxU32 NpArticulationSpatialTendon::getAttachments ( PxArticulationAttachment **  userBuffer,
PxU32  bufferSize,
PxU32  startIndex 
) const
virtual

Fills a user-provided buffer of attachment pointers with the set of attachments.

Parameters
[in]userBufferThe user-provided buffer.
[in]bufferSizeThe size of the buffer. If this is not large enough to contain all the pointers to attachments, only as many as can fit are written. Use getNbAttachments to size for all attachments.
[in]startIndexIndex of first attachment pointer to be retrieved.
Returns
The number of attachments that were filled into the user buffer.
See also
getNbAttachments

Implements physx::PxArticulationSpatialTendon.

◆ getDamping()

PxReal NpArticulationSpatialTendon::getDamping ( ) const
virtual

Gets the damping term acting both on the tendon length and tendon-length limits.

Returns
The damping term.
See also
setDamping()

Implements physx::PxArticulationTendon.

◆ getLimitStiffness()

PxReal NpArticulationSpatialTendon::getLimitStiffness ( ) const
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.

Returns
The limit stiffness term.
See also
setLimitStiffness()

Implements physx::PxArticulationTendon.

◆ getNbAttachments()

PxU32 NpArticulationSpatialTendon::getNbAttachments ( ) const
virtual

Returns the number of attachments in the tendon.

Returns
The number of attachments.

Implements physx::PxArticulationSpatialTendon.

◆ getOffset()

PxReal NpArticulationSpatialTendon::getOffset ( ) const
virtual

Gets the length offset term for the tendon.

Returns
The offset term.
See also
setOffset()

Implements physx::PxArticulationTendon.

◆ getStiffness()

PxReal NpArticulationSpatialTendon::getStiffness ( ) const
virtual

Gets the spring stiffness of the tendon.

Returns
The spring stiffness.
See also
setStiffness()

Implements physx::PxArticulationTendon.

◆ release()

void NpArticulationSpatialTendon::release ( )
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.

Note
Releasing a tendon is not allowed while the articulation is in a scene. In order to release the tendon, remove and then re-add the articulation to the scene.

Implements physx::PxArticulationTendon.

◆ setDamping()

void NpArticulationSpatialTendon::setDamping ( const PxReal  damping)
virtual

Sets the damping term acting both on the tendon length and tendon-length limits.

Parameters
[in]dampingThe damping term. Default: 0
See also
getDamping()

Implements physx::PxArticulationTendon.

◆ setLimitStiffness()

void NpArticulationSpatialTendon::setLimitStiffness ( const PxReal  stiffness)
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.

Parameters
[in]stiffnessThe limit stiffness term. Default: 0
See also
getLimitStiffness()

Implements physx::PxArticulationTendon.

◆ setOffset()

void NpArticulationSpatialTendon::setOffset ( const PxReal  offset,
bool  autowake = true 
)
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.

Parameters
[in]offsetThe offset term. Default: 0
[in]autowakeIf 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.
See also
getOffset()

Implements physx::PxArticulationTendon.

◆ setStiffness()

void NpArticulationSpatialTendon::setStiffness ( const PxReal  stiffness)
virtual

Sets the spring stiffness term acting on the tendon length.

Parameters
[in]stiffnessThe spring stiffness. Default: 0
See also
getStiffness()

Implements physx::PxArticulationTendon.


The documentation for this class was generated from the following files: