29#ifndef PX_DISTANCE_JOINT_H
30#define PX_DISTANCE_JOINT_H
35#include "extensions/PxJoint.h"
55PxDistanceJoint*
PxDistanceJointCreate(PxPhysics& physics, PxRigidActor* actor0,
const PxTransform& localFrame0, PxRigidActor* actor1,
const PxTransform& localFrame1);
67 eMAX_DISTANCE_ENABLED = 1<<1,
68 eMIN_DISTANCE_ENABLED = 1<<2,
69 eSPRING_ENABLED = 1<<3
74PX_FLAGS_OPERATORS(PxDistanceJointFlag::Enum, PxU16)
a joint that maintains an upper or lower bound (or both) on the distance between two points on differ...
Definition PxDistanceJoint.h:82
virtual void setStiffness(PxReal stiffness)=0
Set the strength of the joint spring.
virtual PxDistanceJointFlags getDistanceJointFlags() const =0
Get the flags specific to the Distance Joint.
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxDistanceJoint.h:286
virtual PxReal getMinDistance() const =0
Get the allowed minimum distance for the joint.
virtual void setContactDistance(PxReal contactDistance)=0
Set the contact distance for the min & max distance limits.
virtual void setDistanceJointFlags(PxDistanceJointFlags flags)=0
Set the flags specific to the Distance Joint.
virtual void setTolerance(PxReal tolerance)=0
Set the error tolerance of the joint.
virtual PxReal getDamping() const =0
Get the damping of the joint spring.
virtual void setDistanceJointFlag(PxDistanceJointFlag::Enum flag, bool value)=0
Set a single flag specific to a Distance Joint to true or false.
virtual PxReal getStiffness() const =0
Get the strength of the joint spring.
virtual const char * getConcreteTypeName() const
Returns string name of PxDistanceJoint, used for serialization.
Definition PxDistanceJoint.h:267
virtual PxReal getContactDistance() const =0
Get the contact distance.
virtual PxReal getMaxDistance() const =0
Get the allowed maximum distance for the joint.
virtual void setMaxDistance(PxReal distance)=0
Set the allowed maximum distance for the joint.
virtual PxReal getTolerance() const =0
Get the error tolerance of the joint.
PX_INLINE PxDistanceJoint(PxType concreteType, PxBaseFlags baseFlags)
Constructor.
Definition PxDistanceJoint.h:276
PX_INLINE PxDistanceJoint(PxBaseFlags baseFlags)
Deserialization constructor.
Definition PxDistanceJoint.h:281
virtual void setMinDistance(PxReal distance)=0
Set the allowed minimum distance for the joint.
virtual void setDamping(PxReal damping)=0
Set the damping of the joint spring.
virtual PxReal getDistance() const =0
Return the current distance of the joint.
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
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
#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
PxDistanceJoint * PxDistanceJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a distance Joint.
Definition ExtDistanceJoint.cpp:319
flags for configuring the drive of a PxDistanceJoint
Definition PxDistanceJoint.h:64