|
|
static void | getBinaryMetaData (PxOutputStream &stream) |
| |
|
static PxU32 | vehicleSuspLimitConstraintSolverPrep (Px1DConstraint *constraints, PxVec3p &body0WorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &, const void *constantBlock, const PxTransform &bodyAToWorld, const PxTransform &bodyBToWorld, bool, PxVec3p &cA2w, PxVec3p &cB2w) |
| |
|
static void | visualiseConstraint (PxConstraintVisualizer &viz, const void *constantBlock, const PxTransform &body0Transform, const PxTransform &body1Transform, PxU32 flags) |
| |
◆ getConstantBlock()
| virtual const void * physx::PxVehicleConstraintShader::getConstantBlock |
( |
| ) |
const |
|
inlinevirtual |
◆ getExternalReference()
| virtual void * physx::PxVehicleConstraintShader::getExternalReference |
( |
PxU32 & |
typeID | ) |
|
|
inlinevirtual |
◆ getPrep()
◆ getSerializable()
| virtual PxBase * physx::PxVehicleConstraintShader::getSerializable |
( |
| ) |
|
|
inlinevirtual |
◆ onComShift()
| virtual void physx::PxVehicleConstraintShader::onComShift |
( |
PxU32 |
actor | ) |
|
|
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.
◆ onConstraintRelease()
| virtual void physx::PxVehicleConstraintShader::onConstraintRelease |
( |
| ) |
|
|
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.
◆ onOriginShift()
| virtual void physx::PxVehicleConstraintShader::onOriginShift |
( |
const PxVec3 & |
shift | ) |
|
|
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.
- Note
- If the adjustments affect constraint shader data, it is necessary to call PxConstraint::markDirty() to make sure that the data gets synced at the beginning of the next simulation step.
- Parameters
-
| [in] | shift | Translation vector the origin is shifted by. |
- See also
- PxScene.shiftOrigin()
Implements physx::PxConstraintConnector.
◆ prepareData()
| virtual void * physx::PxVehicleConstraintShader::prepareData |
( |
| ) |
|
|
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.
◆ updateOmniPvdProperties()
| virtual void physx::PxVehicleConstraintShader::updateOmniPvdProperties |
( |
| ) |
const |
|
inlinevirtual |
◆ updatePvdProperties()
The documentation for this class was generated from the following files: