RavEngine
Loading...
Searching...
No Matches
PxVehicleAPI.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
30
35#include "vehicle2/PxVehicleLimits.h"
36#include "vehicle2/PxVehicleComponent.h"
37#include "vehicle2/PxVehicleComponentSequence.h"
38#include "vehicle2/PxVehicleParams.h"
39#include "vehicle2/PxVehicleFunctions.h"
40#include "vehicle2/PxVehicleMaths.h"
41
42#include "vehicle2/braking/PxVehicleBrakingParams.h"
43#include "vehicle2/braking/PxVehicleBrakingFunctions.h"
44
45#include "vehicle2/commands/PxVehicleCommandParams.h"
46#include "vehicle2/commands/PxVehicleCommandStates.h"
47#include "vehicle2/commands/PxVehicleCommandHelpers.h"
48
49#include "vehicle2/drivetrain/PxVehicleDrivetrainParams.h"
50#include "vehicle2/drivetrain/PxVehicleDrivetrainStates.h"
51#include "vehicle2/drivetrain/PxVehicleDrivetrainHelpers.h"
52#include "vehicle2/drivetrain/PxVehicleDrivetrainFunctions.h"
53#include "vehicle2/drivetrain/PxVehicleDrivetrainComponents.h"
54
55#include "vehicle2/physxActor/PxVehiclePhysXActorStates.h"
56#include "vehicle2/physxActor/PxVehiclePhysXActorHelpers.h"
57#include "vehicle2/physxActor/PxVehiclePhysXActorFunctions.h"
58#include "vehicle2/physxActor/PxVehiclePhysXActorComponents.h"
59
60#include "vehicle2/physxConstraints/PxVehiclePhysXConstraintParams.h"
61#include "vehicle2/physxConstraints/PxVehiclePhysXConstraintStates.h"
62#include "vehicle2/physxConstraints/PxVehiclePhysXConstraintHelpers.h"
63#include "vehicle2/physxConstraints/PxVehiclePhysXConstraintFunctions.h"
64#include "vehicle2/physxConstraints/PxVehiclePhysXConstraintComponents.h"
65
66#include "vehicle2/physxRoadGeometry/PxVehiclePhysXRoadGeometryState.h"
67#include "vehicle2/physxRoadGeometry/PxVehiclePhysXRoadGeometryParams.h"
68#include "vehicle2/physxRoadGeometry/PxVehiclePhysXRoadGeometryHelpers.h"
69#include "vehicle2/physxRoadGeometry/PxVehiclePhysXRoadGeometryFunctions.h"
70#include "vehicle2/physxRoadGeometry/PxVehiclePhysXRoadGeometryComponents.h"
71
72#include "vehicle2/pvd/PxVehiclePvdHelpers.h"
73#include "vehicle2/pvd/PxVehiclePvdFunctions.h"
74#include "vehicle2/pvd/PxVehiclePvdComponents.h"
75
76#include "vehicle2/rigidBody/PxVehicleRigidBodyParams.h"
77#include "vehicle2/rigidBody/PxVehicleRigidBodyStates.h"
78#include "vehicle2/rigidBody/PxVehicleRigidBodyFunctions.h"
79#include "vehicle2/rigidBody/PxVehicleRigidBodyComponents.h"
80
81#include "vehicle2/roadGeometry/PxVehicleRoadGeometryState.h"
82
83#include "vehicle2/steering/PxVehicleSteeringParams.h"
84#include "vehicle2/steering/PxVehicleSteeringFunctions.h"
85
86#include "vehicle2/suspension/PxVehicleSuspensionParams.h"
87#include "vehicle2/suspension/PxVehicleSuspensionStates.h"
88#include "vehicle2/suspension/PxVehicleSuspensionHelpers.h"
89#include "vehicle2/suspension/PxVehicleSuspensionFunctions.h"
90#include "vehicle2/suspension/PxVehicleSuspensionComponents.h"
91
92#include "vehicle2/tire/PxVehicleTireParams.h"
93#include "vehicle2/tire/PxVehicleTireStates.h"
94#include "vehicle2/tire/PxVehicleTireHelpers.h"
95#include "vehicle2/tire/PxVehicleTireFunctions.h"
96#include "vehicle2/tire/PxVehicleTireComponents.h"
97
98#include "vehicle2/wheel/PxVehicleWheelParams.h"
99#include "vehicle2/wheel/PxVehicleWheelStates.h"
100#include "vehicle2/wheel/PxVehicleWheelHelpers.h"
101#include "vehicle2/wheel/PxVehicleWheelFunctions.h"
102#include "vehicle2/wheel/PxVehicleWheelComponents.h"
103
104#if !PX_DOXYGEN
105namespace physx
106{
107namespace vehicle2
108{
109#endif
110
120 PX_FORCE_INLINE bool PxInitVehicleExtension(physx::PxFoundation& foundation)
121 {
122 PX_UNUSED(foundation);
123 PX_CHECK_AND_RETURN_VAL(&PxGetFoundation() == &foundation, "Supplied foundation must match the one that will be used to perform allocations", false);
125 return true;
126 }
127
136 PX_FORCE_INLINE void PxCloseVehicleExtension()
137 {
139 }
140
141
142#if !PX_DOXYGEN
143} // namespace vehicle2
144} // namespace physx
145#endif
146
Foundation SDK singleton class.
Definition PxFoundation.h:57
PX_C_EXPORT PX_FOUNDATION_API void PX_CALL_CONV PxDecFoundationRefCount()
Decrement the ref count of PxFoundation.
Definition FdFoundation.cpp:299
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
PX_C_EXPORT PX_FOUNDATION_API physx::PxFoundation &PX_CALL_CONV PxGetFoundation()
Retrieves the Foundation SDK after it has been created.
Definition FdFoundation.cpp:279
PX_C_EXPORT PX_FOUNDATION_API void PX_CALL_CONV PxIncFoundationRefCount()
Increment the ref count of PxFoundation.
Definition FdFoundation.cpp:304
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39