29#ifndef PX_VEHICLE_NO_DRIVE_H
30#define PX_VEHICLE_NO_DRIVE_H
32#include "vehicle/PxVehicleWheels.h"
33#include "vehicle/PxVehicleComponents.h"
44class PxVehicleDrivableSurfaceToTireFrictionPairs;
111 void setToRestState();
123 void setBrakeTorque(
const PxU32
id,
const PxReal brakeTorque);
135 void setDriveTorque(
const PxU32
id,
const PxReal driveTorque);
147 void setSteerAngle(
const PxU32
id,
const PxReal steerAngle);
154 PxReal getBrakeTorque(
const PxU32
id)
const;
161 PxReal getDriveTorque(
const PxU32
id)
const;
168 PxReal getSteerAngle(
const PxU32
id)
const;
172 PxReal* mSteerAngles;
173 PxReal* mDriveTorques;
174 PxReal* mBrakeTorques;
185 bool isValid()
const;
196 virtual bool isKindOf(
const char* name)
const {
return !::strcmp(
"PxVehicleNoDrive", name) || PxBase::isKindOf(name); }
197 PxU32 getNbSteerAngle()
const {
return mWheelsSimData.getNbWheels(); }
198 PxU32 getNbDriveTorque()
const {
return mWheelsSimData.getNbWheels(); }
199 PxU32 getNbBrakeTorque()
const {
return mWheelsSimData.getNbWheels(); }
202 ~PxVehicleNoDrive() {}
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
Binary serialization context class.
Definition PxSerialFramework.h:99
Data structure with instanced dynamics data and configuration data of a vehicle with no drive model.
Definition PxVehicleNoDrive.h:53
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxVehicleNoDrive.h:196
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxVehicleNoDrive.h:195
Definition PxVehicleUpdate.cpp:4519
Data structure describing configuration data of a vehicle with up to 20 wheels.
Definition PxVehicleWheels.h:129
Data structure with instanced dynamics data and configuration data of a vehicle with just wheels.
Definition PxVehicleWheels.h:827
#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