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

Public Member Functions

 NpArticulationJointReducedCoordinate (PxBaseFlags baseFlags)
 
void preExportDataReset ()
 
virtual void resolveReferences (PxDeserializationContext &context)
 
void exportExtraData (PxSerializationContext &)
 
void importExtraData (PxDeserializationContext &)
 
virtual void requiresObjects (PxProcessPxBaseCallback &)
 
virtual bool isSubordinate () const
 
 NpArticulationJointReducedCoordinate (NpArticulationLink &parent, const PxTransform &parentFrame, NpArticulationLink &child, const PxTransform &childFrame)
 
virtual void setJointType (PxArticulationJointType::Enum jointType)
 Sets the joint type (e.g. revolute).
 
virtual PxArticulationJointType::Enum getJointType () const
 Gets the joint type.
 
virtual void setMotion (PxArticulationAxis::Enum axis, PxArticulationMotion::Enum motion)
 Sets the joint motion for a given axis.
 
virtual PxArticulationMotion::Enum getMotion (PxArticulationAxis::Enum axis) const
 Returns the joint motion for the given axis.
 
virtual void setFrictionCoefficient (const PxReal coefficient)
 Sets the joint friction coefficient, which applies to all joint axes.
 
virtual PxReal getFrictionCoefficient () const
 Gets the joint friction coefficient.
 
virtual void setMaxJointVelocity (const PxReal maxJointV)
 Sets the maximal joint velocity enforced for all axes.
 
virtual PxReal getMaxJointVelocity () const
 Gets the maximal joint velocity enforced for all axes.
 
virtual void setLimitParams (PxArticulationAxis::Enum axis, const PxArticulationLimit &pair)
 Sets the joint limits for a given axis.
 
virtual PxArticulationLimit getLimitParams (PxArticulationAxis::Enum axis) const
 Returns the joint limits for a given axis.
 
virtual void setDriveParams (PxArticulationAxis::Enum axis, const PxArticulationDrive &drive)
 Configures a joint drive for the given axis.
 
virtual PxArticulationDrive getDriveParams (PxArticulationAxis::Enum axis) const
 Gets the joint drive configuration for the given axis.
 
virtual void setDriveTarget (PxArticulationAxis::Enum axis, const PxReal target, bool autowake=true)
 Sets the joint drive position target for the given axis.
 
virtual PxReal getDriveTarget (PxArticulationAxis::Enum axis) const
 Returns the joint drive position target for the given axis.
 
virtual void setDriveVelocity (PxArticulationAxis::Enum axis, const PxReal targetVel, bool autowake=true)
 Sets the joint drive velocity target for the given axis.
 
virtual PxReal getDriveVelocity (PxArticulationAxis::Enum axis) const
 Returns the joint drive velocity target for the given axis.
 
virtual void setArmature (PxArticulationAxis::Enum axis, const PxReal armature)
 Sets the joint armature for the given axis.
 
virtual PxReal getArmature (PxArticulationAxis::Enum axis) const
 Gets the joint armature for the given axis.
 
virtual void setJointPosition (PxArticulationAxis::Enum axis, const PxReal jointPos)
 Sets the joint position for the given axis.
 
virtual PxReal getJointPosition (PxArticulationAxis::Enum axis) const
 Gets the joint position for the given axis, i.e. joint degree of freedom (DOF).
 
virtual void setJointVelocity (PxArticulationAxis::Enum axis, const PxReal jointVel)
 Sets the joint velocity for the given axis.
 
virtual PxReal getJointVelocity (PxArticulationAxis::Enum axis) const
 Gets the joint velocity for the given axis.
 
void release ()
 Releases the PxBase instance, please check documentation of release in derived class.
 
PX_FORCE_INLINE Sc::ArticulationJointCore & getCore ()
 
PX_INLINE void scSetParentPose (const PxTransform &v)
 
PX_INLINE void scSetChildPose (const PxTransform &v)
 
PX_INLINE void scSetJointType (PxArticulationJointType::Enum v)
 
PX_INLINE void scSetFrictionCoefficient (const PxReal v)
 
PX_INLINE void scSetMaxJointVelocity (const PxReal v)
 
PX_INLINE void scSetLimit (PxArticulationAxis::Enum axis, const PxArticulationLimit &pair)
 
PX_INLINE void scSetDrive (PxArticulationAxis::Enum axis, const PxArticulationDrive &drive)
 
PX_INLINE void scSetDriveTarget (PxArticulationAxis::Enum axis, PxReal targetP)
 
PX_INLINE void scSetDriveVelocity (PxArticulationAxis::Enum axis, PxReal targetP)
 
PX_INLINE void scSetArmature (PxArticulationAxis::Enum axis, PxReal armature)
 
PX_INLINE void scSetMotion (PxArticulationAxis::Enum axis, PxArticulationMotion::Enum motion)
 
PX_INLINE void scSetJointPosition (PxArticulationAxis::Enum axis, const PxReal jointPos)
 
PX_INLINE void scSetJointVelocity (PxArticulationAxis::Enum axis, const PxReal jointVel)
 
virtual PxArticulationLink & getParentArticulationLink () const
 Gets the parent articulation link of this joint.
 
virtual PxArticulationLink & getChildArticulationLink () const
 Gets the child articulation link of this joint.
 
virtual PxTransform getParentPose () const
 Gets the joint pose in the parent link actor frame.
 
virtual void setParentPose (const PxTransform &t)
 Sets the joint pose in the parent link actor frame.
 
virtual PxTransform getChildPose () const
 Gets the joint pose in the child link actor frame.
 
virtual void setChildPose (const PxTransform &t)
 Sets the joint pose in the child link actor frame.
 
PX_INLINE const NpArticulationLink & getParent () const
 
PX_INLINE NpArticulationLink & getParent ()
 
PX_INLINE const NpArticulationLink & getChild () const
 
PX_INLINE NpArticulationLink & getChild ()
 
- Public Member Functions inherited from physx::PxArticulationJointReducedCoordinate
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.
 
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 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 NpArticulationJointReducedCoordinate * createObject (PxU8 *&address, PxDeserializationContext &context)
 
static void getBinaryMetaData (PxOutputStream &stream)
 
static PX_FORCE_INLINE size_t getCoreOffset ()
 
- Static Public Member Functions inherited from physx::NpBase
static void getBinaryMetaData (PxOutputStream &stream)
 

Public Attributes

Sc::ArticulationJointCore mCore
 
NpArticulationLink * mParent
 
NpArticulationLink * mChild
 
- Public Attributes inherited from physx::PxArticulationJointReducedCoordinate
void * userData
 The user can assign this to whatever, usually to create a 1:1 relationship with a user object.
 

Additional Inherited Members

- Protected Member Functions inherited from physx::PxArticulationJointReducedCoordinate
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
 
- Protected Attributes inherited from physx::PxBase
PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 
- Protected Attributes inherited from physx::NpBase
PxU32 mFreeSlot
 

Member Function Documentation

◆ getArmature()

PxReal physx::NpArticulationJointReducedCoordinate::getArmature ( PxArticulationAxis::Enum  axis) const
virtual

Gets the joint armature for the given axis.

Parameters
[in]axisThe target axis.
Returns
The armature set on the given axis.
See also
PxArticulationAxis, setArmature

Implements physx::PxArticulationJointReducedCoordinate.

◆ getChildArticulationLink()

virtual PxArticulationLink & physx::NpArticulationJointReducedCoordinate::getChildArticulationLink ( ) const
inlinevirtual

Gets the child articulation link of this joint.

Returns
The child link.

Implements physx::PxArticulationJointReducedCoordinate.

◆ getChildPose()

PxTransform physx::NpArticulationJointReducedCoordinate::getChildPose ( ) const
virtual

Gets the joint pose in the child link actor frame.

Returns
The joint pose.
See also
setChildPose

Implements physx::PxArticulationJointReducedCoordinate.

◆ getDriveParams()

PxArticulationDrive physx::NpArticulationJointReducedCoordinate::getDriveParams ( PxArticulationAxis::Enum  axis) const
virtual

Gets the joint drive configuration for the given axis.

Parameters
[in]axisThe target axis.
Returns
The drive parameters.
See also
setDriveParams, PxArticulationAxis, PxArticulationDrive

Implements physx::PxArticulationJointReducedCoordinate.

◆ getDriveTarget()

PxReal physx::NpArticulationJointReducedCoordinate::getDriveTarget ( PxArticulationAxis::Enum  axis) const
virtual

Returns the joint drive position target for the given axis.

Parameters
[in]axisThe target axis.
Returns
The target position.
See also
PxArticulationAxis, setDriveTarget

Implements physx::PxArticulationJointReducedCoordinate.

◆ getDriveVelocity()

PxReal physx::NpArticulationJointReducedCoordinate::getDriveVelocity ( PxArticulationAxis::Enum  axis) const
virtual

Returns the joint drive velocity target for the given axis.

Parameters
[in]axisThe target axis.
Returns
The target velocity.
See also
PxArticulationAxis, setDriveVelocity

Implements physx::PxArticulationJointReducedCoordinate.

◆ getFrictionCoefficient()

PxReal physx::NpArticulationJointReducedCoordinate::getFrictionCoefficient ( ) const
virtual

Gets the joint friction coefficient.

Returns
The joint friction coefficient.
See also
setFrictionCoefficient

Implements physx::PxArticulationJointReducedCoordinate.

◆ getJointPosition()

PxReal physx::NpArticulationJointReducedCoordinate::getJointPosition ( PxArticulationAxis::Enum  axis) const
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.

Parameters
[in]axisThe target axis.
Returns
The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis.
Note
This call is not allowed while the simulation is running except in a split simulation during PxScene::collide() and up to PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
See also
PxArticulationAxis, setJointPosition, PxArticulationCache::jointPosition

Implements physx::PxArticulationJointReducedCoordinate.

◆ getJointType()

PxArticulationJointType::Enum physx::NpArticulationJointReducedCoordinate::getJointType ( ) const
virtual

Gets the joint type.

Returns
The joint type.
See also
PxArticulationJointType, setJointType

Implements physx::PxArticulationJointReducedCoordinate.

◆ getJointVelocity()

PxReal physx::NpArticulationJointReducedCoordinate::getJointVelocity ( PxArticulationAxis::Enum  axis) const
virtual

Gets the joint velocity for the given axis.

For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query.

Parameters
[in]axisThe target axis.
Returns
The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis.
Note
This call is not allowed while the simulation is running except in a split simulation during PxScene::collide() and up to PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
See also
PxArticulationAxis, setJointVelocity, PxArticulationCache::jointVelocity

Implements physx::PxArticulationJointReducedCoordinate.

◆ getLimitParams()

PxArticulationLimit physx::NpArticulationJointReducedCoordinate::getLimitParams ( PxArticulationAxis::Enum  axis) const
virtual

Returns the joint limits for a given axis.

Parameters
[in]axisThe target axis.
Returns
The joint limits.
See also
setLimitParams, PxArticulationAxis, PxArticulationLimit

Implements physx::PxArticulationJointReducedCoordinate.

◆ getMaxJointVelocity()

PxReal physx::NpArticulationJointReducedCoordinate::getMaxJointVelocity ( ) const
virtual

Gets the maximal joint velocity enforced for all axes.

Returns
The maximal per-axis joint velocity.
See also
setMaxJointVelocity

Implements physx::PxArticulationJointReducedCoordinate.

◆ getMotion()

PxArticulationMotion::Enum physx::NpArticulationJointReducedCoordinate::getMotion ( PxArticulationAxis::Enum  axis) const
virtual

Returns the joint motion for the given axis.

Parameters
[in]axisThe target axis.
Returns
The joint motion of the given axis.
See also
PxArticulationAxis, PxArticulationMotion, setMotion

Implements physx::PxArticulationJointReducedCoordinate.

◆ getParentArticulationLink()

virtual PxArticulationLink & physx::NpArticulationJointReducedCoordinate::getParentArticulationLink ( ) const
inlinevirtual

Gets the parent articulation link of this joint.

Returns
The parent link.

Implements physx::PxArticulationJointReducedCoordinate.

◆ getParentPose()

PxTransform physx::NpArticulationJointReducedCoordinate::getParentPose ( ) const
virtual

Gets the joint pose in the parent link actor frame.

Returns
The joint pose.
See also
setParentPose

Implements physx::PxArticulationJointReducedCoordinate.

◆ release()

void physx::NpArticulationJointReducedCoordinate::release ( )
virtual

Releases the PxBase instance, please check documentation of release in derived class.

Implements physx::PxBase.

◆ setArmature()

void physx::NpArticulationJointReducedCoordinate::setArmature ( PxArticulationAxis::Enum  axis,
const PxReal  armature 
)
virtual

Sets the joint armature for the given axis.

  • The armature is directly added to the joint-space spatial inertia of the corresponding axis.
  • The armature is in mass units for a prismatic (i.e. linear) joint, and in mass units * (scene linear units)^2 for a rotational joint.
Parameters
[in]axisThe target axis.
[in]armatureThe joint axis armature.
Note
This call is not allowed while the simulation is running.
See also
PxArticulationAxis, getArmature

Implements physx::PxArticulationJointReducedCoordinate.

◆ setChildPose()

void physx::NpArticulationJointReducedCoordinate::setChildPose ( const PxTransform &  pose)
virtual

Sets the joint pose in the child link actor frame.

Parameters
[in]poseThe joint pose. Default: The identity transform.
Note
This call is not allowed while the simulation is running.
See also
getChildPose

Implements physx::PxArticulationJointReducedCoordinate.

◆ setDriveParams()

void physx::NpArticulationJointReducedCoordinate::setDriveParams ( PxArticulationAxis::Enum  axis,
const PxArticulationDrive &  drive 
)
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.

Parameters
[in]axisThe target axis.
[in]driveThe drive parameters
Note
This call is not allowed while the simulation is running.
See also
getDriveParams, PxArticulationAxis, PxArticulationDrive

Implements physx::PxArticulationJointReducedCoordinate.

◆ setDriveTarget()

void physx::NpArticulationJointReducedCoordinate::setDriveTarget ( PxArticulationAxis::Enum  axis,
const PxReal  target,
bool  autowake = true 
)
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.

Parameters
[in]axisThe target axis.
[in]targetThe target position.
[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.
Note
This call is not allowed while the simulation is running.
For spherical joints, target must be in range [-Pi, Pi].
The target is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the joint will drive the parent and child links to poses that obey Gp * Lp * J = Gc * Lc. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistTarget, swing1Target, swing2Target))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(XTarget, YTarget, ZTarget), PxQuat(PxIdentity)).
For spherical joints with more than 1 degree of freedom, the joint target angles taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint drive target is not the shortest path rotation. The joint pose J that is the outcome after driving to the target pose will always be the equivalent of the shortest path rotation.
See also
PxArticulationAxis, getDriveTarget

Implements physx::PxArticulationJointReducedCoordinate.

◆ setDriveVelocity()

void physx::NpArticulationJointReducedCoordinate::setDriveVelocity ( PxArticulationAxis::Enum  axis,
const PxReal  targetVel,
bool  autowake = true 
)
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.

Parameters
[in]axisThe target axis.
[in]targetVelThe target velocity.
[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.
Note
This call is not allowed while the simulation is running.
See also
PxArticulationAxis, getDriveVelocity

Implements physx::PxArticulationJointReducedCoordinate.

◆ setFrictionCoefficient()

void physx::NpArticulationJointReducedCoordinate::setFrictionCoefficient ( const PxReal  coefficient)
virtual

Sets the joint friction coefficient, which applies to all joint axes.

  • The joint friction is unitless and relates the magnitude of the spatial force [F_trans, T_trans] transmitted from parent to child link to the maximal friction force F_resist that may be applied by the solver to resist joint motion, per axis; i.e. |F_resist| <= coefficient * (|F_trans| + |T_trans|), where F_resist may refer to a linear force or torque depending on the joint axis.
  • The simulated friction effect is therefore similar to static and Coulomb friction. In order to simulate dynamic joint friction, use a joint drive with zero stiffness and zero velocity target, and an appropriately dimensioned damping parameter.
Parameters
[in]coefficientThe joint friction coefficient.
Note
This call is not allowed while the simulation is running.
See also
getFrictionCoefficient

Implements physx::PxArticulationJointReducedCoordinate.

◆ setJointPosition()

void physx::NpArticulationJointReducedCoordinate::setJointPosition ( PxArticulationAxis::Enum  axis,
const PxReal  jointPos 
)
virtual

Sets the joint position for the given axis.

Parameters
[in]axisThe target axis.
[in]jointPosThe joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis.
Note
This call is not allowed while the simulation is running.
For spherical joints, jointPos must be in range [-Pi, Pi].
Joint position is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the parent and child links will be given poses that obey Gp * Lp * J = Gc * Lc with J denoting the joint pose. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistPos, swing1Pos, swing2Pos))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(xPos, yPos, zPos), PxQuat(PxIdentity)).
For spherical joints with more than 1 degree of freedom, the input joint positions taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint positions is not the shortest path rotation. The joint pose J that is the outcome of setting and applying the joint positions will always be the equivalent of the shortest path rotation.
See also
PxArticulationAxis, getJointPosition, PxArticulationCache::jointPosition, PxArticulationReducedCoordinate::updateKinematic

Implements physx::PxArticulationJointReducedCoordinate.

◆ setJointType()

void physx::NpArticulationJointReducedCoordinate::setJointType ( PxArticulationJointType::Enum  jointType)
virtual

Sets the joint type (e.g. revolute).

Parameters
[in]jointTypeThe joint type to set.
Note
Setting the joint type is not allowed while the articulation is in a scene. In order to set the joint type, remove and then re-add the articulation to the scene.
See also
PxArticulationJointType, getJointType

Implements physx::PxArticulationJointReducedCoordinate.

◆ setJointVelocity()

void physx::NpArticulationJointReducedCoordinate::setJointVelocity ( PxArticulationAxis::Enum  axis,
const PxReal  jointVel 
)
virtual

Sets the joint velocity for the given axis.

Parameters
[in]axisThe target axis.
[in]jointVelThe joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis.
Note
This call is not allowed while the simulation is running.
See also
PxArticulationAxis, getJointVelocity, PxArticulationCache::jointVelocity, PxArticulationReducedCoordinate::updateKinematic

Implements physx::PxArticulationJointReducedCoordinate.

◆ setLimitParams()

void physx::NpArticulationJointReducedCoordinate::setLimitParams ( PxArticulationAxis::Enum  axis,
const PxArticulationLimit &  limit 
)
virtual

Sets the joint limits for a given axis.

  • The motion of the corresponding axis should be set to PxArticulationMotion::eLIMITED in order for the limits to be enforced.
  • The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames.
Parameters
[in]axisThe target axis.
[in]limitThe joint limits.
Note
This call is not allowed while the simulation is running.
For spherical joints, limit.min and limit.max must both be in range [-Pi, Pi].
See also
getLimitParams, PxArticulationAxis, PxArticulationLimit

Implements physx::PxArticulationJointReducedCoordinate.

◆ setMaxJointVelocity()

void physx::NpArticulationJointReducedCoordinate::setMaxJointVelocity ( const PxReal  maxJointV)
virtual

Sets the maximal joint velocity enforced for all axes.

  • The solver will apply appropriate joint-space impulses in order to enforce the per-axis joint-velocity limit.
  • The velocity units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis.
Parameters
[in]maxJointVThe maximal per-axis joint velocity.
Note
This call is not allowed while the simulation is running.
See also
getMaxJointVelocity

Implements physx::PxArticulationJointReducedCoordinate.

◆ setMotion()

void physx::NpArticulationJointReducedCoordinate::setMotion ( PxArticulationAxis::Enum  axis,
PxArticulationMotion::Enum  motion 
)
virtual

Sets the joint motion for a given axis.

Parameters
[in]axisThe target axis.
[in]motionThe motion type to set.
Note
Setting the motion of joint axes is not allowed while the articulation is in a scene. In order to set the motion, remove and then re-add the articulation to the scene.
See also
PxArticulationAxis, PxArticulationMotion, getMotion

Implements physx::PxArticulationJointReducedCoordinate.

◆ setParentPose()

void physx::NpArticulationJointReducedCoordinate::setParentPose ( const PxTransform &  pose)
virtual

Sets the joint pose in the parent link actor frame.

Parameters
[in]poseThe joint pose. Default: The identity transform.
Note
This call is not allowed while the simulation is running.
See also
getParentPose

Implements physx::PxArticulationJointReducedCoordinate.


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