35#include "vehicle2/PxVehicleParams.h"
36#include "vehicle2/PxVehicleComponent.h"
38#include "vehicle2/roadGeometry/PxVehicleRoadGeometryState.h"
39#include "vehicle2/suspension/PxVehicleSuspensionParams.h"
40#include "vehicle2/suspension/PxVehicleSuspensionStates.h"
42#include "PxVehiclePhysXConstraintFunctions.h"
43#include "PxVehiclePhysXConstraintHelpers.h"
44#include "PxVehiclePhysXConstraintStates.h"
45#include "PxVehiclePhysXConstraintParams.h"
47#include "common/PxProfileZone.h"
62 virtual void getDataForPhysXConstraintComponent(
79 PX_PROFILE_ZONE(
"PxVehiclePhysXConstraintComponent::update", 0);
92 getDataForPhysXConstraintComponent(axleDescription, rigidBodyState,
93 suspensionParams, suspensionLimitParams, suspensionStates, suspensionComplianceStates,
94 wheelRoadGeomStates, tireDirectionStates, tireStickyStates,
97 PxVehicleConstraintsDirtyStateUpdate(*constraints);
99 for (PxU32 i = 0; i < axleDescription->
nbWheels; i++)
103 PxVehiclePhysXConstraintStatesUpdate(
104 suspensionParams[wheelId], suspensionLimitParams[wheelId],
105 suspensionStates[wheelId], suspensionComplianceStates[wheelId],
106 wheelRoadGeomStates[wheelId].plane.n,
107 context.tireStickyParams.stickyParams[PxVehicleTireDirectionModes::eLONGITUDINAL].damping,
108 context.tireStickyParams.stickyParams[PxVehicleTireDirectionModes::eLATERAL].damping,
109 tireDirectionStates[wheelId], tireStickyStates[wheelId],
Definition PxVehicleComponent.h:45
Definition PxVehiclePhysXConstraintComponents.h:57
virtual bool update(const PxReal dt, const PxVehicleSimulationContext &context)
Update function for a vehicle component.
Definition PxVehiclePhysXConstraintComponents.h:74
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Helper struct to pass array type data to vehice components and functions.
Definition PxVehicleParams.h:249
Definition PxVehicleParams.h:53
PxU32 wheelIdsInAxleOrder[PxVehicleLimits::eMAX_NB_WHEELS]
The list of all wheel ids on the vehicle.
Definition PxVehicleParams.h:149
PxU32 nbWheels
The number of wheels on the vehicle.
Definition PxVehicleParams.h:150
A mapping between constraint state data and the associated PxConstraint instances.
Definition PxVehiclePhysXConstraintStates.h:317
PxVehiclePhysXConstraintState constraintStates[PxVehicleLimits::eMAX_NB_WHEELS]
PxVehiclePhysXConstraintComponent writes to the constraintStates array and a callback invoked by PxSc...
Definition PxVehiclePhysXConstraintStates.h:323
Definition PxVehicleRigidBodyStates.h:47
Definition PxVehicleParams.h:672