|
RavEngine
|
Public Member Functions | |
| JointT (PxBaseFlags baseFlags) | |
| void | exportExtraData (PxSerializationContext &stream) |
| void | importExtraData (PxDeserializationContext &context) |
| virtual void | preExportDataReset () |
| virtual void | requiresObjects (PxProcessPxBaseCallback &c) |
| virtual bool | updatePvdProperties (physx::pvdsdk::PvdDataStream &, const PxConstraint *, PxPvdUpdateType::Enum) const PX_OVERRIDE |
| this function is called by the SDK to update PVD's view of it | |
| virtual void | updateOmniPvdProperties () const PX_OVERRIDE |
| this function is called by the SDK to update OmniPVD's view of it | |
| virtual void | setActors (PxRigidActor *actor0, PxRigidActor *actor1) PX_OVERRIDE |
| virtual void | getActors (PxRigidActor *&actor0, PxRigidActor *&actor1) const PX_OVERRIDE |
| virtual void | setLocalPose (PxJointActorIndex::Enum actor, const PxTransform &pose) PX_OVERRIDE |
| virtual PxTransform | getLocalPose (PxJointActorIndex::Enum actor) const PX_OVERRIDE |
| virtual PxTransform | getRelativeTransform () const PX_OVERRIDE |
| virtual PxVec3 | getRelativeLinearVelocity () const PX_OVERRIDE |
| virtual PxVec3 | getRelativeAngularVelocity () const PX_OVERRIDE |
| virtual void | setBreakForce (PxReal force, PxReal torque) PX_OVERRIDE |
| virtual void | getBreakForce (PxReal &force, PxReal &torque) const PX_OVERRIDE |
| virtual void | setConstraintFlags (PxConstraintFlags flags) PX_OVERRIDE |
| virtual void | setConstraintFlag (PxConstraintFlag::Enum flag, bool value) PX_OVERRIDE |
| virtual PxConstraintFlags | getConstraintFlags () const PX_OVERRIDE |
| virtual void | setInvMassScale0 (PxReal invMassScale) PX_OVERRIDE |
| virtual PxReal | getInvMassScale0 () const PX_OVERRIDE |
| virtual void | setInvInertiaScale0 (PxReal invInertiaScale) PX_OVERRIDE |
| virtual PxReal | getInvInertiaScale0 () const PX_OVERRIDE |
| virtual void | setInvMassScale1 (PxReal invMassScale) PX_OVERRIDE |
| virtual PxReal | getInvMassScale1 () const PX_OVERRIDE |
| virtual void | setInvInertiaScale1 (PxReal invInertiaScale) PX_OVERRIDE |
| virtual PxReal | getInvInertiaScale1 () const PX_OVERRIDE |
| virtual PxConstraint * | getConstraint () const PX_OVERRIDE |
| virtual void | setName (const char *name) PX_OVERRIDE |
| virtual const char * | getName () const PX_OVERRIDE |
| virtual void | release () PX_OVERRIDE |
| virtual PxScene * | getScene () const PX_OVERRIDE |
| virtual void | onComShift (PxU32 actor) PX_OVERRIDE |
| Center-of-mass shift callback. | |
| virtual void | onOriginShift (const PxVec3 &shift) PX_OVERRIDE |
| Origin shift callback. | |
| virtual void * | prepareData () PX_OVERRIDE |
| Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block. | |
| virtual void * | getExternalReference (PxU32 &typeID) PX_OVERRIDE |
| Fetches external data for a constraint. | |
| virtual PxBase * | getSerializable () PX_OVERRIDE |
| Obtain a reference to a PxBase interface if the constraint has one. | |
| virtual void | onConstraintRelease () PX_OVERRIDE |
| Constraint release callback. | |
| virtual const void * | getConstantBlock () const PX_OVERRIDE |
| Obtain the pointer to the constraint's constant data. | |
| virtual void | connectToConstraint (PxConstraint *c) PX_OVERRIDE |
| Let the connector know it has been connected to a constraint. | |
Public Member Functions inherited from physx::PxConstraintConnector | |
| virtual PxConstraintSolverPrep | getPrep () const =0 |
| Obtain the shader function pointer used to prep rows for this constraint. | |
| virtual | ~PxConstraintConnector () |
| virtual destructor | |
Public Member Functions inherited from physx::PxUserAllocated | |
| PX_INLINE void * | operator new (size_t, void *address) |
| PX_INLINE void | operator delete (void *, void *) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete (void *ptr, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line) |
| PX_INLINE void | operator delete (void *ptr) |
| PX_INLINE void | operator delete[] (void *ptr) |
Static Public Member Functions | |
| static PxTransform | getGlobalPose (const PxRigidActor *actor) |
| static void | getActorVelocity (const PxRigidActor *actor, PxVec3 &linear, PxVec3 &angular) |
Protected Member Functions | |
| JointT (PxType concreteType, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1, const char *name) | |
| PX_FORCE_INLINE DataClass & | data () const |
| PX_FORCE_INLINE void | markDirty () |
| void | wakeUpActors () |
| PX_FORCE_INLINE PxQuat | getTwistOrSwing (bool needTwist) const |
| PxReal | getTwistAngle_Internal () const |
| PxReal | getSwingYAngle_Internal () const |
| PxReal | getSwingZAngle_Internal () const |
Protected Attributes | |
| const char * | mName |
| PxTransform | mLocalPose [2] |
| PxConstraint * | mPxConstraint |
| JointData * | mData |
|
inlinevirtual |
Let the connector know it has been connected to a constraint.
Reimplemented from physx::PxConstraintConnector.
|
inlinevirtual |
Obtain the pointer to the constraint's constant data.
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Fetches external data for a constraint.
This function is used by the SDK to acquire a reference to the owner of a constraint and a unique owner type ID. This information will be passed on when a breakable constraint breaks or when PxConstraint::getExternalReference() is called.
| [out] | typeID | Unique type identifier of the external object. The value 0xffffffff is reserved and should not be used. Furthermore, if the PhysX extensions library is used, some other IDs are reserved already (see PxConstraintExtIDs) |
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Obtain a reference to a PxBase interface if the constraint has one.
If the constraint does not implement the PxBase interface, it should return NULL.
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Center-of-mass shift callback.
This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object's center of mass.
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Constraint release callback.
When the SDK deletes a PxConstraint object this function is called by the SDK. In general custom constraints should not be deleted directly by applications: rather, the constraint should respond to a release() request by calling PxConstraint::release(), then wait for this call to release its own resources.
This function is also called when a PxConstraint object is deleted on cleanup due to destruction of the PxPhysics object.
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Origin shift callback.
This function is called by the SDK when the scene origin gets shifted and allows to adjust custom data which contains world space transforms.
| [in] | shift | Translation vector the origin is shifted by. |
Implements physx::PxConstraintConnector.
|
inlinevirtual |
Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block.
Implements physx::PxConstraintConnector.
Reimplemented in physx::Ext::D6Joint, physx::Ext::GearJoint, and physx::Ext::RackAndPinionJoint.
|
inlinevirtual |
this function is called by the SDK to update OmniPVD's view of it
Implements physx::PxConstraintConnector.
|
inlinevirtual |
this function is called by the SDK to update PVD's view of it
Implements physx::PxConstraintConnector.