|
RavEngine
|
A joint between two links in an articulation. More...
#include <PxArticulationJointReducedCoordinate.h>
Public Member Functions | |
| virtual PxArticulationLink & | getParentArticulationLink () const =0 |
| Gets the parent articulation link of this joint. | |
| virtual void | setParentPose (const PxTransform &pose)=0 |
| Sets the joint pose in the parent link actor frame. | |
| virtual PxTransform | getParentPose () const =0 |
| Gets the joint pose in the parent link actor frame. | |
| virtual PxArticulationLink & | getChildArticulationLink () const =0 |
| Gets the child articulation link of this joint. | |
| virtual void | setChildPose (const PxTransform &pose)=0 |
| Sets the joint pose in the child link actor frame. | |
| virtual PxTransform | getChildPose () const =0 |
| Gets the joint pose in the child link actor frame. | |
| virtual void | setJointType (PxArticulationJointType::Enum jointType)=0 |
| Sets the joint type (e.g. revolute). | |
| virtual PxArticulationJointType::Enum | getJointType () const =0 |
| Gets the joint type. | |
| virtual void | setMotion (PxArticulationAxis::Enum axis, PxArticulationMotion::Enum motion)=0 |
| Sets the joint motion for a given axis. | |
| virtual PxArticulationMotion::Enum | getMotion (PxArticulationAxis::Enum axis) const =0 |
| Returns the joint motion for the given axis. | |
| PX_DEPRECATED PX_FORCE_INLINE void | setLimit (PxArticulationAxis::Enum axis, const PxReal lowLimit, const PxReal highLimit) |
| Sets the joint limits for a given axis. | |
| PX_DEPRECATED PX_FORCE_INLINE void | getLimit (PxArticulationAxis::Enum axis, PxReal &lowLimit, PxReal &highLimit) const |
| Returns the joint limits for a given axis. | |
| virtual void | setLimitParams (PxArticulationAxis::Enum axis, const PxArticulationLimit &limit)=0 |
| Sets the joint limits for a given axis. | |
| virtual PxArticulationLimit | getLimitParams (PxArticulationAxis::Enum axis) const =0 |
| Returns the joint limits for a given axis. | |
| PX_DEPRECATED PX_FORCE_INLINE void | setDrive (PxArticulationAxis::Enum axis, const PxReal stiffness, const PxReal damping, const PxReal maxForce, PxArticulationDriveType::Enum driveType=PxArticulationDriveType::eFORCE) |
| Configures a joint drive for the given axis. | |
| PX_DEPRECATED PX_FORCE_INLINE void | getDrive (PxArticulationAxis::Enum axis, PxReal &stiffness, PxReal &damping, PxReal &maxForce, PxArticulationDriveType::Enum &driveType) const |
| Gets the joint drive configuration for the given axis. | |
| virtual void | setDriveParams (PxArticulationAxis::Enum axis, const PxArticulationDrive &drive)=0 |
| Configures a joint drive for the given axis. | |
| virtual PxArticulationDrive | getDriveParams (PxArticulationAxis::Enum axis) const =0 |
| Gets the joint drive configuration for the given axis. | |
| virtual void | setDriveTarget (PxArticulationAxis::Enum axis, const PxReal target, bool autowake=true)=0 |
| Sets the joint drive position target for the given axis. | |
| virtual PxReal | getDriveTarget (PxArticulationAxis::Enum axis) const =0 |
| Returns the joint drive position target for the given axis. | |
| virtual void | setDriveVelocity (PxArticulationAxis::Enum axis, const PxReal targetVel, bool autowake=true)=0 |
| Sets the joint drive velocity target for the given axis. | |
| virtual PxReal | getDriveVelocity (PxArticulationAxis::Enum axis) const =0 |
| Returns the joint drive velocity target for the given axis. | |
| virtual void | setArmature (PxArticulationAxis::Enum axis, const PxReal armature)=0 |
| Sets the joint armature for the given axis. | |
| virtual PxReal | getArmature (PxArticulationAxis::Enum axis) const =0 |
| Gets the joint armature for the given axis. | |
| virtual void | setFrictionCoefficient (const PxReal coefficient)=0 |
| Sets the joint friction coefficient, which applies to all joint axes. | |
| virtual PxReal | getFrictionCoefficient () const =0 |
| Gets the joint friction coefficient. | |
| virtual void | setMaxJointVelocity (const PxReal maxJointV)=0 |
| Sets the maximal joint velocity enforced for all axes. | |
| virtual PxReal | getMaxJointVelocity () const =0 |
| Gets the maximal joint velocity enforced for all axes. | |
| virtual void | setJointPosition (PxArticulationAxis::Enum axis, const PxReal jointPos)=0 |
| Sets the joint position for the given axis. | |
| virtual PxReal | getJointPosition (PxArticulationAxis::Enum axis) const =0 |
| Gets the joint position for the given axis, i.e. joint degree of freedom (DOF). | |
| virtual void | setJointVelocity (PxArticulationAxis::Enum axis, const PxReal jointVel)=0 |
| Sets the joint velocity for the given axis. | |
| virtual PxReal | getJointVelocity (PxArticulationAxis::Enum axis) const =0 |
| Gets the joint velocity for the given axis. | |
| virtual const char * | getConcreteTypeName () const |
| Returns the string name of the dynamic type. | |
Public Member Functions inherited from physx::PxBase | |
| virtual void | release ()=0 |
| Releases the PxBase instance, please check documentation of release in derived class. | |
| 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 |
| The user can assign this to whatever, usually to create a 1:1 relationship with a user object. | |
Protected Member Functions | |
| PX_INLINE | PxArticulationJointReducedCoordinate (PxType concreteType, PxBaseFlags baseFlags) |
| PX_INLINE | PxArticulationJointReducedCoordinate (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::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 | |
Protected Attributes inherited from physx::PxBase | |
| PxType | mConcreteType |
| PxBaseFlags | mBaseFlags |
| PxU32 | mBuiltInRefCount |
A joint between two links in an articulation.
|
pure virtual |
Gets the joint armature for the given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the child articulation link of this joint.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint pose in the child link actor frame.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
inlinevirtual |
|
inline |
Gets the joint drive configuration for the given axis.
| [in] | axis | The motion axis. |
| [out] | stiffness | The drive stiffness. |
| [out] | damping | The drive damping. |
| [out] | maxForce | The force limit. |
| [out] | driveType | The drive type. |
|
pure virtual |
Gets the joint drive configuration for the given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Returns the joint drive position target for the given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Returns the joint drive velocity target for the given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint friction coefficient.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint position for the given axis, i.e. joint degree of freedom (DOF).
For performance, prefer PxArticulationCache::jointPosition to get joint positions in a batch query.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint type.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint velocity for the given axis.
For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
inline |
Returns the joint limits for a given axis.
| [in] | axis | The target axis. |
| [out] | lowLimit | The lower joint limit. |
| [out] | highLimit | The higher joint limit. |
|
pure virtual |
Returns the joint limits for a given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the maximal joint velocity enforced for all axes.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Returns the joint motion for the given axis.
| [in] | axis | The target axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the parent articulation link of this joint.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Gets the joint pose in the parent link actor frame.
Implemented in physx::NpArticulationJointReducedCoordinate.
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from physx::PxBase.
|
pure virtual |
Sets the joint armature for the given axis.
| [in] | axis | The target axis. |
| [in] | armature | The joint axis armature. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint pose in the child link actor frame.
| [in] | pose | The joint pose. Default: The identity transform. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
inline |
Configures a joint drive for the given axis.
See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
| [in] | axis | The target axis. |
| [in] | stiffness | The drive stiffness, i.e. the proportional gain of the implicit PD controller. Range: [0, PX_MAX_F32] Default: 0.0 |
| [in] | damping | The drive damping, i.e. the derivative gain of the implicit PD controller. Range: [0, PX_MAX_F32] Default: 0.0 |
| [in] | maxForce | The force limit of the drive (this parameter also limits the force for an acceleration-type drive). Range: [0, PX_MAX_F32] Default: 0.0 |
| [in] | driveType | The drive type, |
|
pure virtual |
Configures a joint drive for the given axis.
See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
| [in] | axis | The target axis. |
| [in] | drive | The drive parameters |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint drive position target for the given axis.
The target units are linear units (equivalent to scene units) for a translational axis, or rad for a rotational axis.
| [in] | axis | The target axis. |
| [in] | target | The target position. |
| [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::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint drive velocity target for the given axis.
The target units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis.
| [in] | axis | The target axis. |
| [in] | targetVel | The target velocity. |
| [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::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint friction coefficient, which applies to all joint axes.
| [in] | coefficient | The joint friction coefficient. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint position for the given axis.
| [in] | axis | The target axis. |
| [in] | jointPos | The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint type (e.g. revolute).
| [in] | jointType | The joint type to set. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint velocity for the given axis.
| [in] | axis | The target axis. |
| [in] | jointVel | The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
inline |
Sets the joint limits for a given axis.
| [in] | axis | The target axis. |
| [in] | lowLimit | The lower joint limit. Range: [-PX_MAX_F32, highLimit) Default: 0.0 |
| [in] | highLimit | The higher joint limit. Range: (lowLimit, PX_MAX_F32] Default: 0.0 |
|
pure virtual |
Sets the joint limits for a given axis.
| [in] | axis | The target axis. |
| [in] | limit | The joint limits. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the maximal joint velocity enforced for all axes.
| [in] | maxJointV | The maximal per-axis joint velocity. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint motion for a given axis.
| [in] | axis | The target axis. |
| [in] | motion | The motion type to set. |
Implemented in physx::NpArticulationJointReducedCoordinate.
|
pure virtual |
Sets the joint pose in the parent link actor frame.
| [in] | pose | The joint pose. Default: The identity transform. |
Implemented in physx::NpArticulationJointReducedCoordinate.