30#ifndef PX_ARTICULATION_TENDON_H
31#define PX_ARTICULATION_TENDON_H
35#include "PxPhysXConfig.h"
36#include "common/PxBase.h"
37#include "solver/PxSolverDefs.h"
43 class PxArticulationSpatialTendon;
44 class PxArticulationFixedTendon;
45 class PxArticulationLink;
195 PX_INLINE PxArticulationAttachment(PxBaseFlags baseFlags) : PxBase(baseFlags) {}
279 PX_INLINE PxArticulationTendonJoint(PxBaseFlags baseFlags) : PxBase(baseFlags) {}
362 virtual void setOffset(
const PxReal offset,
bool autowake =
true) = 0;
463 PX_INLINE PxArticulationSpatialTendon(PxType concreteType, PxBaseFlags baseFlags) : PxArticulationTendon(concreteType, baseFlags) {}
464 PX_INLINE PxArticulationSpatialTendon(PxBaseFlags baseFlags) : PxArticulationTendon(baseFlags) {}
579 PX_INLINE PxArticulationFixedTendon(PxType concreteType, PxBaseFlags baseFlags) : PxArticulationTendon(concreteType, baseFlags) {}
580 PX_INLINE PxArticulationFixedTendon(PxBaseFlags baseFlags) : PxArticulationTendon(baseFlags) {}
Defines a spatial tendon attachment point on a link.
Definition PxArticulationTendon.h:60
virtual const char * getConcreteTypeName() const
Returns the string name of the dynamic type.
Definition PxArticulationTendon.h:190
virtual void setLimitParameters(const PxArticulationTendonLimit ¶meters)=0
Sets the low and high limit on the length of the sub-tendon from the root to this leaf attachment.
virtual PxArticulationTendonLimit getLimitParameters() const =0
Gets the low and high limit on the length of the sub-tendon from the root to this leaf attachment.
virtual PxVec3 getRelativeOffset() const =0
Gets the attachment's relative offset in the link actor frame.
void * userData
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Definition PxArticulationTendon.h:183
virtual bool isLeaf() const =0
Indicates that this attachment is a leaf, and thus defines a sub-tendon from the root to this attachm...
virtual void setCoefficient(const PxReal coefficient)=0
Sets the attachment coefficient.
virtual PxReal getCoefficient() const =0
Gets the attachment coefficient.
virtual void release()=0
Releases the attachment.
virtual PxReal getRestLength() const =0
Gets the spring rest length for the sub-tendon from the root to this leaf attachment.
virtual void setRestLength(const PxReal restLength)=0
Sets the spring rest length for the sub-tendon from the root to this leaf attachment.
virtual void setRelativeOffset(const PxVec3 &offset)=0
Sets the attachment's relative offset in the link actor frame.
virtual PxArticulationSpatialTendon * getTendon() const =0
Gets the spatial tendon that the attachment is a part of.
virtual PxArticulationLink * getLink() const =0
Gets the articulation link.
virtual PxArticulationAttachment * getParent() const =0
Gets the parent attachment.
A fixed tendon that can be used to link multiple degrees of freedom of multiple articulation joints v...
Definition PxArticulationTendon.h:478
virtual PxArticulationTendonLimit getLimitParameters() const =0
Gets the low and high limit on the length of the tendon.
virtual PxArticulationTendonJoint * createTendonJoint(PxArticulationTendonJoint *parent, PxArticulationAxis::Enum axis, const PxReal coefficient, const PxReal recipCoefficient, PxArticulationLink *link)=0
Creates an articulation tendon joint and adds it to the list of children in the parent tendon joint.
virtual void setRestLength(const PxReal restLength)=0
Sets the spring rest length of the tendon.
virtual const char * getConcreteTypeName() const
Returns the string name of the dynamic type.
Definition PxArticulationTendon.h:574
virtual void setLimitParameters(const PxArticulationTendonLimit ¶meter)=0
Sets the low and high limit on the length of the tendon.
virtual PxU32 getNbTendonJoints() const =0
Returns the number of tendon joints in the tendon.
virtual PxU32 getTendonJoints(PxArticulationTendonJoint **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
Fills a user-provided buffer of tendon-joint pointers with the set of tendon joints.
virtual PxReal getRestLength() const =0
Gets the spring rest length of the tendon.
A component of an articulation that represents a rigid body.
Definition PxArticulationLink.h:54
A tree structure of bodies connected by joints that is treated as a unit by the dynamics solver....
Definition PxArticulationReducedCoordinate.h:448
A spatial tendon that attaches to an articulation.
Definition PxArticulationTendon.h:413
virtual const char * getConcreteTypeName() const
Returns the string name of the dynamic type.
Definition PxArticulationTendon.h:458
virtual PxU32 getAttachments(PxArticulationAttachment **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
Fills a user-provided buffer of attachment pointers with the set of attachments.
virtual PxU32 getNbAttachments() const =0
Returns the number of attachments in the tendon.
virtual PxArticulationAttachment * createAttachment(PxArticulationAttachment *parent, const PxReal coefficient, const PxVec3 relativeOffset, PxArticulationLink *link)=0
Creates an articulation attachment and adds it to the list of children in the parent attachment.
Defines a fixed-tendon joint on an articulation joint degree of freedom.
Definition PxArticulationTendon.h:203
virtual void setCoefficient(const PxArticulationAxis::Enum axis, const PxReal coefficient, const PxReal recipCoefficient)=0
Sets the tendon joint coefficient.
virtual PxArticulationTendonJoint * getParent() const =0
Gets the parent tendon joint.
virtual const char * getConcreteTypeName() const
Returns the string name of the dynamic type.
Definition PxArticulationTendon.h:274
virtual PxArticulationFixedTendon * getTendon() const =0
Gets the tendon that the joint is a part of.
void * userData
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Definition PxArticulationTendon.h:267
virtual void getCoefficient(PxArticulationAxis::Enum &axis, PxReal &coefficient, PxReal &recipCoefficient) const =0
Gets the tendon joint coefficient.
virtual void release()=0
Releases a tendon joint.
virtual PxArticulationLink * getLink() const =0
Gets the articulation link.
Defines the low/high limits of the length of a tendon.
Definition PxArticulationTendon.h:50
Common API base class shared by PxArticulationSpatialTendon and PxArticulationFixedTendon.
Definition PxArticulationTendon.h:287
virtual void release()=0
Releases a tendon to remove it from the articulation and free its associated memory.
void * userData
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Definition PxArticulationTendon.h:395
virtual PxArticulationReducedCoordinate * getArticulation() const =0
Gets the articulation that the tendon is a part of.
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 void setDamping(const PxReal damping)=0
Sets the damping term acting both on the tendon length and tendon-length limits.
virtual void setStiffness(const PxReal stiffness)=0
Sets the spring stiffness term acting on the tendon length.
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 PxReal getStiffness() const =0
Gets the spring stiffness of the tendon.
virtual PxReal getDamping() const =0
Gets the damping term acting both on the tendon length and tendon-length limits.
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
3 Element vector class.
Definition PxVec3.h:50
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Enum
Definition PxSolverDefs.h:252