29#ifndef PX_PRISMATIC_JOINT_H
30#define PX_PRISMATIC_JOINT_H
35#include "extensions/PxJoint.h"
36#include "extensions/PxJointLimit.h"
43class PxPrismaticJoint;
56PxPrismaticJoint*
PxPrismaticJointCreate(PxPhysics& physics, PxRigidActor* actor0,
const PxTransform& localFrame0, PxRigidActor* actor1,
const PxTransform& localFrame1);
73PX_FLAGS_OPERATORS(PxPrismaticJointFlag::Enum, PxU16)
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
Describes a two-sided limit.
Definition PxJointLimit.h:230
a base interface providing common functionality for PhysX joints
Definition PxJoint.h:105
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxJoint.h:379
A prismatic joint permits relative translational movement between two bodies along an axis,...
Definition PxPrismaticJoint.h:87
virtual PxPrismaticJointFlags getPrismaticJointFlags() const =0
Get the flags specific to the Prismatic Joint.
virtual PX_DEPRECATED PxReal getProjectionLinearTolerance() const =0
Get the linear tolerance threshold for projection.
virtual PX_DEPRECATED void setProjectionLinearTolerance(PxReal tolerance)=0
Set the linear tolerance threshold for projection.
PX_INLINE PxPrismaticJoint(PxType concreteType, PxBaseFlags baseFlags)
Constructor.
Definition PxPrismaticJoint.h:223
virtual const char * getConcreteTypeName() const
Returns string name of PxPrismaticJoint, used for serialization.
Definition PxPrismaticJoint.h:215
virtual void setPrismaticJointFlags(PxPrismaticJointFlags flags)=0
Set the flags specific to the Prismatic Joint.
virtual PX_DEPRECATED void setProjectionAngularTolerance(PxReal tolerance)=0
Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJE...
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxPrismaticJoint.h:233
virtual void setPrismaticJointFlag(PxPrismaticJointFlag::Enum flag, bool value)=0
Set a single flag specific to a Prismatic Joint to true or false.
PX_INLINE PxPrismaticJoint(PxBaseFlags baseFlags)
Deserialization constructor.
Definition PxPrismaticJoint.h:228
virtual void setLimit(const PxJointLinearLimitPair &)=0
sets the joint limit parameters.
virtual PxJointLinearLimitPair getLimit() const =0
gets the joint limit parameters.
virtual PxReal getPosition() const =0
returns the displacement of the joint along its axis.
virtual PX_DEPRECATED PxReal getProjectionAngularTolerance() const =0
Get the angular tolerance threshold for projection.
virtual PxReal getVelocity() const =0
returns the velocity of the joint along its axis
#define PX_INLINE
Definition PxPreprocessor.h:320
#define PX_DEPRECATED
Definition PxPreprocessor.h:418
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxPrismaticJoint * PxPrismaticJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a prismatic joint.
Definition ExtPrismaticJoint.cpp:210
Flags specific to the prismatic joint.
Definition PxPrismaticJoint.h:65