30 #ifndef PX_JOINTCONSTRAINT_H 31 #define PX_JOINTCONSTRAINT_H 162 virtual PxTransform getRelativeTransform()
const = 0;
170 virtual PxVec3 getRelativeLinearVelocity()
const = 0;
177 virtual PxVec3 getRelativeAngularVelocity()
const = 0;
189 virtual void setBreakForce(
PxReal force,
PxReal torque) = 0;
199 virtual void getBreakForce(
PxReal& force,
PxReal& torque)
const = 0;
236 virtual void setInvMassScale0(
PxReal invMassScale) = 0;
245 virtual PxReal getInvMassScale0()
const = 0;
254 virtual void setInvInertiaScale0(
PxReal invInertiaScale) = 0;
263 virtual PxReal getInvInertiaScale0()
const = 0;
272 virtual void setInvMassScale1(
PxReal invMassScale) = 0;
281 virtual PxReal getInvMassScale1()
const = 0;
290 virtual void setInvInertiaScale1(
PxReal invInertiaScale) = 0;
299 virtual PxReal getInvInertiaScale1()
const = 0;
320 virtual void setName(
const char* name) = 0;
329 virtual const char* getName()
const = 0;
336 virtual void release() = 0;
345 virtual PxScene* getScene()
const = 0;
Definition: GuContactBuffer.h:37
an enumeration for specifying one or other of the actors referenced by a joint
Definition: PxJoint.h:87
A scene is a collection of bodies and constraints which can interact.
Definition: PxScene.h:169
PxSpring(PxReal stiffness_, PxReal damping_)
Definition: PxJoint.h:394
A prismatic joint permits relative translational movement between two bodies along an axis...
Definition: PxPrismaticJoint.h:87
Definition: PxTypeInfo.h:77
float PxReal
Definition: PxSimpleTypes.h:78
#define PX_C_EXPORT
Definition: Pxc.h:54
virtual bool isKindOf(const char *superClass) const
Returns whether a given type name matches with the type of this instance.
Definition: PxBase.h:178
#define PX_CALL_CONV
Definition: PxPreprocessor.h:328
PX_INLINE PxJoint(PxType concreteType, PxBaseFlags baseFlags)
Constructor.
Definition: PxJoint.h:366
void * userData
user can assign this to whatever, usually to create a 1:1 relationship with a user object...
Definition: PxJoint.h:347
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
Output stream class for I/O.
Definition: PxIO.h:114
Enum
Definition: PxJoint.h:58
a base interface providing common functionality for PhysX joints
Definition: PxJoint.h:101
Enum
Definition: PxJoint.h:89
A joint which behaves in a similar way to a hinge or axle.
Definition: PxRevoluteJoint.h:99
virtual ~PxJoint()
Definition: PxJoint.h:359
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
Definition: PxJoint.h:381
PxReal stiffness
the spring strength of the drive: that is, the force proportional to the position error ...
Definition: PxJoint.h:391
PxReal damping
damping parameter, for spring constraints
Definition: PxConstraintDesc.h:100
A plugin class for implementing constraints.
Definition: PxConstraint.h:108
Enum
Definition: PxConstraint.h:64
A joint which behaves in a similar way to a ball and socket.
Definition: PxSphericalJoint.h:89
a joint that maintains an upper or lower bound (or both) on the distance between two points on differ...
Definition: PxDistanceJoint.h:82
#define PX_DEFINE_TYPEINFO(_name, _fastType)
Definition: PxTypeInfo.h:91
PxReal damping
the damping strength of the drive: that is, the force proportional to the velocity error ...
Definition: PxJoint.h:392
A fixed joint permits no relative movement between two bodies. ie the bodies are glued together...
Definition: PxFixedJoint.h:65
PX_C_EXPORT void PX_CALL_CONV PxSetJointGlobalFrame(physx::PxJoint &joint, const physx::PxVec3 *wsAnchor, const physx::PxVec3 *wsAxis)
Helper function to setup a joint's global frame.
an enumeration of PhysX' built-in joint types
Definition: PxJoint.h:56
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
Base class for objects that can be members of a PxCollection.
Definition: PxBase.h:73
Definition: PxTypeInfo.h:57
#define PX_INLINE
Definition: PxPreprocessor.h:349
PX_INLINE PxJoint(PxBaseFlags baseFlags)
Deserialization constructor.
Definition: PxJoint.h:371
3 Element vector class.
Definition: PxVec3.h:49
A D6 joint is a general constraint between two actors.
Definition: PxD6Joint.h:224