PxVehicleConstraintsCreate

Defined in include/vehicle2/physxConstraints/PxVehiclePhysXConstraintHelpers.h

void PxVehicleConstraintsCreate(const PxVehicleAxleDescription &axleDescription, PxPhysics &physics, PxRigidBody &physxActor, PxVehiclePhysXConstraints &vehicleConstraints)

Instantiate the PhysX custom constraints.

Custom constraints will resolve excess suspension compression and velocity constraints that serve as a replacement low speed tire model.

Parameters
  • axleDescription[in] describes the axles of the vehicle and the wheels on each axle.

  • physics[in] is a PxPhysics instance.

  • physxActor[in] is the vehicle’s PhysX representation as a PxRigidBody

  • vehicleConstraints[in] is a wrapper class that holds pointers to PhysX objects required to implement the custom constraint.