32#include "PxPhysicsAPI.h"
50 static const physx::PxU32 TYPE_ID = physx::PxConcreteType::eFIRST_USER_EXTENSION;
66 void setDistance(physx::PxReal totalDistance);
67 physx::PxReal getDistance()
const;
69 void setRatio(physx::PxReal ratio);
70 physx::PxReal getRatio()
const;
97 physx::PxReal distance;
99 physx::PxReal tolerance;
Definition PulleyJoint.h:47
bool updatePvdProperties(physx::pvdsdk::PvdDataStream &, const physx::PxConstraint *, physx::PxPvdUpdateType::Enum) const
this function is called by the SDK to update PVD's view of it
Definition PulleyJoint.h:80
void onComShift(physx::PxU32 actor)
Center-of-mass shift callback.
Definition PulleyJoint.cpp:208
void updateOmniPvdProperties() const
this function is called by the SDK to update OmniPVD's view of it
Definition PulleyJoint.h:83
virtual physx::PxConstraintSolverPrep getPrep() const
Obtain the shader function pointer used to prep rows for this constraint.
Definition PulleyJoint.cpp:122
void * prepareData()
Pre-simulation data preparation when the constraint is marked dirty, this function is called at the s...
Definition PulleyJoint.cpp:198
void onOriginShift(const physx::PxVec3 &shift)
Origin shift callback.
Definition PulleyJoint.cpp:214
virtual const void * getConstantBlock() const
Obtain the pointer to the constraint's constant data.
Definition PulleyJoint.h:88
void * getExternalReference(physx::PxU32 &typeID)
Fetches external data for a constraint.
Definition PulleyJoint.cpp:220
void onConstraintRelease()
Constraint release callback.
Definition PulleyJoint.cpp:203
physx::PxBase * getSerializable()
Obtain a reference to a PxBase interface if the constraint has one.
Definition PulleyJoint.h:84
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
This class connects a custom constraint to the SDK.
Definition PxConstraintDesc.h:354
A plugin class for implementing constraints.
Definition PxConstraint.h:100
Abstract singleton factory class used for instancing objects in the Physics SDK.
Definition PxPhysics.h:91
PxRigidBody is a base class shared between dynamic rigid body objects.
Definition PxRigidBody.h:199
3 Element vector class.
Definition PxVec3.h:50
Definition PxPvdDataStream.h:241
PxU32(* PxConstraintSolverPrep)(Px1DConstraint *constraints, PxVec3p &bodyAWorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &invMassScale, const void *constantBlock, const PxTransform &bodyAToWorld, const PxTransform &bodyBToWorld, bool useExtendedLimits, PxVec3p &cAtW, PxVec3p &cBtW)
Solver constraint generation shader.
Definition PxConstraintDesc.h:223
Definition PulleyJoint.h:91
Enum
Definition PxConstraintDesc.h:337