PxVehiclePhysXConstraintComponent

Defined in include/vehicle2/physxConstraints/PxVehiclePhysXConstraintComponents.h

class PxVehiclePhysXConstraintComponent : public PxVehicleComponent

Public Functions

inline PxVehiclePhysXConstraintComponent()
inline virtual ~PxVehiclePhysXConstraintComponent()
virtual void getDataForPhysXConstraintComponent(const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData<const PxVehicleSuspensionParams> &suspensionParams, PxVehicleArrayData<const PxVehiclePhysXSuspensionLimitConstraintParams> &suspensionLimitParams, PxVehicleArrayData<const PxVehicleSuspensionState> &suspensionStates, PxVehicleArrayData<const PxVehicleSuspensionComplianceState> &suspensionComplianceStates, PxVehicleArrayData<const PxVehicleRoadGeometryState> &wheelRoadGeomStates, PxVehicleArrayData<const PxVehicleTireDirectionState> &tireDirectionStates, PxVehicleArrayData<const PxVehicleTireStickyState> &tireStickyStates, PxVehiclePhysXConstraints *&constraints) = 0
inline virtual bool update(const PxReal dt, const PxVehicleSimulationContext &context)

Update function for a vehicle component.

Parameters
  • dt[in] The timestep size to use for the update step.

  • context[in] Vehicle simulation context holding global data or data that usually applies to a large group of vehicles.

Returns

True if subsequent components in a sequence should get updated, false if the sequence should be aborted.