29#ifndef PX_VEHICLE_SDK_H
30#define PX_VEHICLE_SDK_H
32#include "foundation/Px.h"
33#include "foundation/PxVec3.h"
34#include "common/PxTypeInfo.h"
42class PxSerializationRegistry;
78#define PX_MAX_NB_WHEELS (20)
86#define PX_DEBUG_VEHICLE_ON (1)
103 eMAX_NB_VEHICLE_TYPES
117 eVehicleNoDrive = PxConcreteType::eFIRST_VEHICLE_EXTENSION,
353 upAxis(0.0f, 1.0f, 0.0f),
354 forwardAxis(0.0f, 0.0f, 1.0f),
355 sideAxis(1.0f, 0.0f, 0.0f),
357 pointRejectAngleThresholdCosine(0.707f),
358 normalRejectAngleThresholdCosine(0.707f),
359 maxHitActorAcceleration(PX_MAX_REAL)
3 Element vector class.
Definition PxVec3.h:50
PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 cross(const PxVec3 &v) const
cross product
Definition PxVec3.h:284
PX_CUDA_CALLABLE PX_FORCE_INLINE bool isNormalized() const
is normalized - used by API parameter validation
Definition PxVec3.h:164
Common parameters and settings used for the vehicle simulation.
Definition PxVehicleSDK.h:244
PxF32 pointRejectAngleThresholdCosine
Cosine of threshold angle for rejecting sweep hits.
Definition PxVehicleSDK.h:301
PxF32 normalRejectAngleThresholdCosine
Cosine of threshold angle for rejecting sweep hits.
Definition PxVehicleSDK.h:313
PxF32 maxHitActorAcceleration
Maximum acceleration experienced by PxRigidDynamic instances that are found to be in contact with a w...
Definition PxVehicleSDK.h:325
PxVec3 sideAxis
The axis denoting the side direction for vehicles.
Definition PxVehicleSDK.h:278
PxVec3 forwardAxis
The axis denoting the forward direction for vehicles.
Definition PxVehicleSDK.h:265
PxVec3 upAxis
The axis denoting the up direction for vehicles.
Definition PxVehicleSDK.h:255
PX_INLINE void computeSideAxis()
Compute the side-axis from the up- and forward-axis.
Definition PxVehicleSDK.h:394
PX_INLINE bool isValid() const
Check if the settings descriptor is valid.
Definition PxVehicleSDK.h:368
PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition PxVehicleSDK.h:363
PxVehicleUpdateMode::Enum updateMode
Apply vehicle simulation results as acceleration or velocity modification.
Definition PxVehicleSDK.h:289
PX_INLINE PxVehicleContext()
Constructor sets to default.
Definition PxVehicleSDK.h:352
#define PX_CALL_CONV
Definition PxPreprocessor.h:299
#define PX_INLINE
Definition PxPreprocessor.h:320
#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
PX_DEPRECATED PX_C_EXPORT bool PX_CALL_CONV PxInitVehicleSDK(PxPhysics &physics, PxSerializationRegistry *serializationRegistry=NULL)
Initialize the PhysXVehicle library.
Definition PxVehicleSDK.cpp:52
PX_DEPRECATED void PxVehicleSetBasisVectors(const PxVec3 &up, const PxVec3 &forward)
Set the basis vectors of the vehicle simulation.
Definition PxVehicleUpdate.cpp:78
PX_DEPRECATED const PxVehicleContext & PxVehicleGetDefaultContext()
Get the default vehicle context.
Definition PxVehicleUpdate.cpp:120
PX_DEPRECATED void PxVehicleSetUpdateMode(PxVehicleUpdateMode::Enum vehicleUpdateMode)
Set the effect of PxVehicleUpdates to be either to modify each vehicle's rigid body actor.
Definition PxVehicleUpdate.cpp:89
PX_DEPRECATED void PxVehicleSetMaxHitActorAcceleration(const PxF32 maxHitActorAcceleration)
Determine the maximum acceleration experienced by PxRigidDynamic instances that are found to be in co...
Definition PxVehicleUpdate.cpp:110
PX_DEPRECATED void PxVehicleSetSweepHitRejectionAngles(const PxF32 pointRejectAngle, const PxF32 normalRejectAngle)
Set threshold angles that are used to determine if a wheel hit is to be resolved by vehicle suspensio...
Definition PxVehicleUpdate.cpp:98
PX_DEPRECATED PX_C_EXPORT void PX_CALL_CONV PxCloseVehicleSDK(PxSerializationRegistry *serializationRegistry=NULL)
Shut down the PhysXVehicle library.
Definition PxVehicleSDK.cpp:81
An enumeration of concrete vehicle classes inheriting from PxBase.
Definition PxVehicleSDK.h:114
Definition PxVehicleSDK.h:93
Definition PxVehicleSDK.h:142