29#ifndef PX_VEHICLE_DRIVE_TANK_H
30#define PX_VEHICLE_DRIVE_TANK_H
32#include "vehicle/PxVehicleDrive.h"
33#include "vehicle/PxVehicleWheels.h"
34#include "vehicle/PxVehicleComponents.h"
45class PxVehicleDrivableSurfaceToTireFrictionPairs;
62 e1ST_FROM_FRONT_RIGHT,
64 e2ND_FROM_FRONT_RIGHT,
66 e3RD_FROM_FRONT_RIGHT,
68 e4TH_FROM_FRONT_RIGHT,
70 e5TH_FROM_FRONT_RIGHT,
72 e6TH_FROM_FRONT_RIGHT,
74 e7TH_FROM_FRONT_RIGHT,
76 e8TH_FROM_FRONT_RIGHT,
105 eANALOG_INPUT_ACCEL=0,
106 eANALOG_INPUT_BRAKE_LEFT,
107 eANALOG_INPUT_BRAKE_RIGHT,
108 eANALOG_INPUT_THRUST_LEFT,
109 eANALOG_INPUT_THRUST_RIGHT,
110 eMAX_NB_DRIVETANK_ANALOG_INPUTS
194 const PxU32 nbDrivenWheels);
210 const PxU32 nbDrivenWheels);
220 mDriveModel=driveModel;
226 PxVehicleDriveTankControlModel::Enum
getDriveModel()
const {
return mDriveModel;}
235 void setToRestState();
247 bool isValid()
const;
253 PxVehicleDriveTankControlModel::Enum mDriveModel;
263 virtual bool isKindOf(
const char* name)
const {
return !::strcmp(
"PxVehicleDriveTank", name) || PxBase::isKindOf(name); }
Binary deserialization context class.
Definition PxSerialFramework.h:174
Output stream class for I/O.
Definition PxIO.h:114
Abstract singleton factory class used for instancing objects in the Physics SDK.
Definition PxPhysics.h:91
PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.
Definition PxRigidDynamic.h:82
Data structure describing non-wheel configuration data of a vehicle that has engine,...
Definition PxVehicleDrive.h:53
Data structure with instanced dynamics data and configuration data of a tank.
Definition PxVehicleDriveTank.h:147
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxVehicleDriveTank.h:263
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxVehicleDriveTank.h:262
void setDriveModel(const PxVehicleDriveTankControlModel::Enum driveModel)
Set the control model used by the tank.
Definition PxVehicleDriveTank.h:218
PxVehicleDriveTankControlModel::Enum getDriveModel() const
Return the control model used by the tank.
Definition PxVehicleDriveTank.h:226
PxVehicleDriveSimData mDriveSimData
Simulation data that models vehicle components.
Definition PxVehicleDriveTank.h:241
A complete vehicle with instance dynamics data and configuration data for wheels and engine,...
Definition PxVehicleDrive.h:493
Definition PxVehicleUpdate.cpp:4519
Data structure describing configuration data of a vehicle with up to 20 wheels.
Definition PxVehicleWheels.h:129
#define PX_COMPILE_TIME_ASSERT(exp)
Definition PxPreprocessor.h:428
#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
Two driving models are supported.
Definition PxVehicleDriveTank.h:134
The control inputs for a PxVehicleDriveTank.
Definition PxVehicleDriveTank.h:102
The ordering of the wheels of a PxVehicleDriveTank.
Definition PxVehicleDriveTank.h:56