30 #ifndef PX_DISTANCEJOINT_H 31 #define PX_DISTANCEJOINT_H 68 eMAX_DISTANCE_ENABLED = 1<<1,
69 eMIN_DISTANCE_ENABLED = 1<<2,
70 eSPRING_ENABLED = 1<<3
89 virtual PxReal getDistance()
const = 0;
103 virtual void setMinDistance(
PxReal distance) = 0;
112 virtual PxReal getMinDistance()
const = 0;
126 virtual void setMaxDistance(
PxReal distance) = 0;
135 virtual PxReal getMaxDistance()
const = 0;
144 virtual void setTolerance(
PxReal tolerance) = 0;
159 virtual PxReal getTolerance()
const = 0;
182 virtual PxReal getStiffness()
const = 0;
205 virtual PxReal getDamping()
const = 0;
Definition: GuContactBuffer.h:37
float PxReal
Definition: PxSimpleTypes.h:78
Enum
Definition: PxDistanceJoint.h:66
PxDistanceJoint * PxDistanceJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a distance Joint.
PxU16 PxType
Definition: PxBase.h:49
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition: PxRigidActor.h:58
PxReal stiffness
spring parameter, for spring constraints
Definition: PxConstraintDesc.h:99
a base interface providing common functionality for PhysX joints
Definition: PxJoint.h:101
PX_INLINE PxDistanceJoint(PxType concreteType, PxBaseFlags baseFlags)
Constructor.
Definition: PxDistanceJoint.h:249
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxJoint.h:376
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
PxReal damping
damping parameter, for spring constraints
Definition: PxConstraintDesc.h:100
a joint that maintains an upper or lower bound (or both) on the distance between two points on differ...
Definition: PxDistanceJoint.h:82
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxDistanceJoint.h:259
flags for configuring the drive of a PxDistanceJoint
Definition: PxDistanceJoint.h:64
virtual const char * getConcreteTypeName() const
Returns string name of PxDistanceJoint, used for serialization.
Definition: PxDistanceJoint.h:240
PX_INLINE PxDistanceJoint(PxBaseFlags baseFlags)
Deserialization constructor.
Definition: PxDistanceJoint.h:254
Container for bitfield flag variables associated with a specific enum type.
Definition: PxFlags.h:73
Abstract singleton factory class used for instancing objects in the Physics SDK.
Definition: PxPhysics.h:71
uint16_t PxU16
Definition: PxSimpleTypes.h:73
PxFlags< PxDistanceJointFlag::Enum, PxU16 > PxDistanceJointFlags
Definition: PxDistanceJoint.h:74
#define PX_INLINE
Definition: PxPreprocessor.h:336