222 PX_PROFILE_ZONE(
"PxVehicleLegacyTireComponent::update", 0);
244 getDataForLegacyTireComponent(axleDescription, steerResponseStates,
245 rigidBodyState, actuationStates,
246 wheelParams, suspensionParams, tireForceParams,
247 roadGeomStates, suspensionStates, suspensionComplianceStates,
248 suspensionForces, wheelRigidBody1DStates,
249 tireGripStates, tireDirectionStates, tireSpeedStates, tireSlipStates,
250 tireCamberAngleStates, tireStickyStates, tireForces);
252 for (PxU32 i = 0; i < axleDescription->
nbWheels; i++)
257 PxVehicleTireDirsLegacyUpdate(
258 suspensionParams[wheelId],
259 steerResponseStates[wheelId],
260 roadGeomStates[wheelId], *rigidBodyState,
262 tireDirectionStates[wheelId]);
265 PxVehicleTireSlipSpeedsUpdate(
266 wheelParams[wheelId], suspensionParams[wheelId],
267 steerResponseStates[wheelId], suspensionStates[wheelId], tireDirectionStates[wheelId],
268 *rigidBodyState, roadGeomStates[wheelId],
270 tireSpeedStates[wheelId]);
273 PxVehicleTireSlipsLegacyUpdate(
274 wheelParams[wheelId],
context.tireSlipParams,
275 actuationStates[wheelId], tireSpeedStates[wheelId],
276 wheelRigidBody1DStates[wheelId],
277 tireSlipStates[wheelId]);
280 PxVehicleTireCamberAnglesUpdate(
281 suspensionParams[wheelId], steerResponseStates[wheelId], roadGeomStates[wheelId],
282 suspensionComplianceStates[wheelId], *rigidBodyState,
284 tireCamberAngleStates[wheelId]);
287 PxVehicleTireGripUpdate(
288 tireForceParams[wheelId], roadGeomStates[wheelId],
289 suspensionStates[wheelId], suspensionForces[wheelId],
290 tireSlipStates[wheelId], tireGripStates[wheelId]);
295 PxVehicleTireStickyStateUpdate(
297 wheelParams[wheelId],
299 actuationStates, tireGripStates[wheelId],
300 tireSpeedStates[wheelId], wheelRigidBody1DStates[wheelId],
302 tireStickyStates[wheelId]);
307 PxVehicleTireSlipsAccountingForStickyStatesUpdate(
308 tireStickyStates[wheelId],
309 tireSlipStates[wheelId]);
312 PxVehicleTireForcesUpdate(
313 wheelParams[wheelId], suspensionParams[wheelId],
314 tireForceParams[wheelId],
315 suspensionComplianceStates[wheelId],
316 tireGripStates[wheelId], tireDirectionStates[wheelId],
317 tireSlipStates[wheelId], tireCamberAngleStates[wheelId],
319 tireForces[wheelId]);