RavEngine
Loading...
Searching...
No Matches
PxVehicleTireFunctions.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#pragma once
34#include "foundation/PxSimpleTypes.h"
35#include "vehicle2/PxVehicleParams.h"
36
37#if !PX_DOXYGEN
38namespace physx
39{
40namespace vehicle2
41{
42#endif
43
44struct PxVehicleSuspensionParams;
45struct PxVehicleRoadGeometryState;
46struct PxVehicleRigidBodyState;
47struct PxVehicleTireDirectionState;
48struct PxVehicleSuspensionComplianceState;
49struct PxVehicleWheelParams;
50struct PxVehicleTireSpeedState;
51struct PxVehicleWheelActuationState;
52struct PxVehicleWheelRigidBody1dState;
53struct PxVehicleTireSlipState;
54struct PxVehicleSuspensionState;
55struct PxVehicleTireCamberAngleState;
56struct PxVehicleTireGripState;
57struct PxVehicleTireForceParams;
58struct PxVehicleSuspensionForce;
59struct PxVehicleTireForce;
60struct PxVehicleTireStickyState;
61
73PX_DEPRECATED void PxVehicleTireDirsLegacyUpdate
74(const PxVehicleSuspensionParams& suspensionParams,
75 const PxReal steerAngle, const PxVehicleRoadGeometryState& roadGeometryState, const PxVehicleRigidBodyState& rigidBodyState,
76 const PxVehicleFrame& frame,
77 PxVehicleTireDirectionState& tireDirectionState);
78
91void PxVehicleTireDirsUpdate
92(const PxVehicleSuspensionParams& suspensionParams,
93 const PxReal steerAngle, const PxVehicleRoadGeometryState& roadGeometryState, const PxVehicleSuspensionComplianceState& complianceState,
94 const PxVehicleRigidBodyState& rigidBodyState,
95 const PxVehicleFrame& frame,
96 PxVehicleTireDirectionState& tireDirectionState);
97
113void PxVehicleTireSlipSpeedsUpdate
114(const PxVehicleWheelParams& wheelParams, const PxVehicleSuspensionParams& suspensionParams,
115 const PxF32 steerAngle, const PxVehicleSuspensionState& suspensionStates, const PxVehicleTireDirectionState& tireDirectionState,
116 const PxVehicleRigidBodyState& rigidBodyState, const PxVehicleRoadGeometryState& roadGeometryState,
117 const PxVehicleFrame& frame,
118 PxVehicleTireSpeedState& tireSpeedState);
119
135void PxVehicleTireSlipsUpdate
136(const PxVehicleWheelParams& wheelParams,
137 const PxVehicleTireSlipParams& tireSlipParams,
138 const PxVehicleWheelActuationState& actuationState, PxVehicleTireSpeedState& tireSpeedState, const PxVehicleWheelRigidBody1dState& wheelRigidBody1dState,
139 PxVehicleTireSlipState& tireSlipState);
140
158void PX_DEPRECATED PxVehicleTireSlipsLegacyUpdate
159(const PxVehicleWheelParams& wheelParams,
160 const PxVehicleTireSlipParams& tireSlipParams,
161 const PxVehicleWheelActuationState& actuationState, PxVehicleTireSpeedState& tireSpeedState, const PxVehicleWheelRigidBody1dState& wheelRigidBody1dState,
162 PxVehicleTireSlipState& tireSlipState);
163
164
175void PxVehicleTireCamberAnglesUpdate
176(const PxVehicleSuspensionParams& suspensionParams,
177 const PxReal steerAngle, const PxVehicleRoadGeometryState& roadGeometryState, const PxVehicleSuspensionComplianceState& complianceState,
178 const PxVehicleRigidBodyState& rigidBodyState,
179 const PxVehicleFrame& frame,
180 PxVehicleTireCamberAngleState& tireCamberAngleState);
181
192void PxVehicleTireGripUpdate
193(const PxVehicleTireForceParams& tireForceParams,
194 const PxVehicleRoadGeometryState& roadGeometryState, const PxVehicleSuspensionState& suspensionState, const PxVehicleSuspensionForce& suspensionForce,
195 const PxVehicleTireSlipState& tireSlipState,
196 PxVehicleTireGripState& tireGripState);
197
220void PxVehicleTireStickyStateUpdate
221(const PxVehicleAxleDescription& axleDescription, const PxVehicleWheelParams& wheelParams,
222 const PxVehicleTireStickyParams& tireStickyParams,
223 const PxVehicleArrayData<const PxVehicleWheelActuationState>& actuationStates,
224 const PxVehicleTireGripState& tireGripState, const PxVehicleTireSpeedState& tireSpeedState, const PxVehicleWheelRigidBody1dState& wheelRigidBody1dState,
225 const PxReal dt,
226 PxVehicleTireStickyState& tireStickyState);
227
236void PxVehicleTireSlipsAccountingForStickyStatesUpdate
237(const PxVehicleTireStickyState& tireStickyState,
238 PxVehicleTireSlipState& tireSlipState);
239
255void PxVehicleTireForcesUpdate
256(const PxVehicleWheelParams& wheelParams, const PxVehicleSuspensionParams& suspensionParams,
257 const PxVehicleTireForceParams& tireForceParams,
258 const PxVehicleSuspensionComplianceState& complianceState,
259 const PxVehicleTireGripState& tireGripState, const PxVehicleTireDirectionState& tireDirectionState,
260 const PxVehicleTireSlipState& tireSlipState, const PxVehicleTireCamberAngleState& tireCamberAngleState,
261 const PxVehicleRigidBodyState& rigidBodyState,
262 PxVehicleTireForce& tireForce);
263
264#if !PX_DOXYGEN
265} // namespace vehicle2
266} // namespace physx
267#endif
268
#define PX_DEPRECATED
Definition PxPreprocessor.h:418
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39