Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
PxVehicleDrive Class Reference

A complete vehicle with instance dynamics data and configuration data for wheels and engine,clutch,gears,autobox. More...

#include <PxVehicleDrive.h>

Inheritance diagram for PxVehicleDrive:
Inheritance graph
[legend]
Collaboration diagram for PxVehicleDrive:
Collaboration graph
[legend]

Public Member Functions

 PxVehicleDrive (PxBaseFlags baseFlags)
 
virtual const char * getConcreteTypeName () const
 Returns string name of dynamic type. More...
 
- Public Member Functions inherited from PxVehicleWheels
PX_FORCE_INLINE PxU32 getVehicleType () const
 Return the type of vehicle. More...
 
PX_FORCE_INLINE PxRigidDynamicgetRigidDynamicActor ()
 Get non-const ptr to PxRigidDynamic instance that is the vehicle's physx representation. More...
 
PX_FORCE_INLINE const
PxRigidDynamic
getRigidDynamicActor () const
 Get const ptr to PxRigidDynamic instance that is the vehicle's physx representation. More...
 
PxReal computeForwardSpeed () const
 Compute the rigid body velocity component along the forward vector of the rigid body transform. More...
 
PxReal computeSidewaysSpeed () const
 Compute the rigid body velocity component along the right vector of the rigid body transform. More...
 
virtual void requires (PxProcessPxBaseCallback &c)
 
virtual void exportExtraData (PxSerializationContext &)
 
void importExtraData (PxDeserializationContext &)
 
void resolveReferences (PxDeserializationContext &)
 
PX_FORCE_INLINE PxU32 getNbNonDrivenWheels () const
 
 PxVehicleWheels (PxType concreteType, PxBaseFlags baseFlags)
 
 PxVehicleWheels (PxBaseFlags baseFlags)
 
virtual ~PxVehicleWheels ()
 
virtual void release ()
 Releases the PxBase instance, please check documentation of release in derived class. More...
 
- Public Member Functions inherited from PxBase
template<class T >
T * is ()
 
template<class T >
const T * is () const
 
PX_INLINE PxType getConcreteType () const
 Returns concrete type of object. More...
 
PX_INLINE void setBaseFlag (PxBaseFlag::Enum flag, bool value)
 Set PxBaseFlag. More...
 
PX_INLINE void setBaseFlags (PxBaseFlags inFlags)
 Set PxBaseFlags. More...
 
PX_INLINE PxBaseFlags getBaseFlags () const
 Returns PxBaseFlags. More...
 
virtual bool isReleasable () const
 Whether the object is subordinate. More...
 

Static Public Member Functions

static void getBinaryMetaData (PxOutputStream &stream)
 
- Static Public Member Functions inherited from PxVehicleWheels
static void getBinaryMetaData (PxOutputStream &stream)
 

Public Attributes

PxVehicleDriveDynData mDriveDynData
 Dynamics data of vehicle instance. More...
 
- Public Attributes inherited from PxVehicleWheels
PxVehicleWheelsSimData mWheelsSimData
 Data describing the setup of all the wheels/suspensions/tires. More...
 
PxVehicleWheelsDynData mWheelsDynData
 Data describing the dynamic state of all wheels/suspension/tires. More...
 

Protected Member Functions

bool isValid () const
 Test that all instanced dynamics data and configuration data have legal values. More...
 
void setToRestState ()
 Set vehicle to rest. More...
 
void free ()
 Deallocate a PxVehicle4WDrive instance. More...
 
void setup (PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &wheelsData, const PxU32 nbDrivenWheels, const PxU32 nbNonDrivenWheels)
 
 PxVehicleDrive (PxType concreteType, PxBaseFlags baseFlags)
 
 ~PxVehicleDrive ()
 
virtual bool isKindOf (const char *name) const
 Returns whether a given type name matches with the type of this instance. More...
 
- Protected Member Functions inherited from PxVehicleWheels
void setToRestState ()
 Set all wheels to their rest state. More...
 
bool isValid () const
 Test that all configuration and instanced dynamics data is valid. More...
 
void free ()
 Deallocate a PxVehicleWheels instance. More...
 
void setup (PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &wheelsData, const PxU32 nbDrivenWheels, const PxU32 nbNonDrivenWheels)
 
- Protected Member Functions inherited from PxBase
PX_INLINE PxBase (PxType concreteType, PxBaseFlags baseFlags)
 Constructor setting concrete type and base flags. More...
 
PX_INLINE PxBase (PxBaseFlags baseFlags)
 Deserialization constructor setting base flags. More...
 
virtual ~PxBase ()
 Destructor. More...
 
template<class T >
bool typeMatch () const
 

Static Protected Member Functions

static PxU32 computeByteSize (const PxU32 nbWheels4)
 
static PxU8patchupPointers (PxVehicleDrive *vehDrive, PxU8 *ptr, const PxU32 nbWheels4, const PxU32 nbWheels)
 
- Static Protected Member Functions inherited from PxVehicleWheels
static PxU32 computeByteSize (const PxU32 nbWheels4)
 
static PxU8patchupPointers (PxVehicleWheels *veh, PxU8 *ptr, const PxU32 nbWheels4, const PxU32 nbWheels, bool renew=true)
 

Friends

class PxVehicleUpdate
 

Additional Inherited Members

- Protected Attributes inherited from PxVehicleWheels
PxRigidDynamicmActor
 The rigid body actor that represents the vehicle in the PhysX SDK. More...
 
PxU8 mType
 Vehicle type (eVehicleDriveTypes) More...
 
PxU8 mPad [14]
 

Detailed Description

A complete vehicle with instance dynamics data and configuration data for wheels and engine,clutch,gears,autobox.

See Also
PxVehicleDrive4W, PxVehicleDriveTank

Constructor & Destructor Documentation

PxVehicleDrive::PxVehicleDrive ( PxBaseFlags  baseFlags)
inline
PxVehicleDrive::PxVehicleDrive ( PxType  concreteType,
PxBaseFlags  baseFlags 
)
inlineprotected
PxVehicleDrive::~PxVehicleDrive ( )
inlineprotected

Member Function Documentation

static PxU32 PxVehicleDrive::computeByteSize ( const PxU32  nbWheels4)
staticprotected
void PxVehicleDrive::free ( )
protected

Deallocate a PxVehicle4WDrive instance.

See Also
PxVehicleDrive4W::free, PxVehicleDriveTank::free
static void PxVehicleDrive::getBinaryMetaData ( PxOutputStream stream)
static
virtual const char* PxVehicleDrive::getConcreteTypeName ( ) const
inlinevirtual

Returns string name of dynamic type.

Returns
Class name of most derived type of this object.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveTank, and PxVehicleDriveNW.

virtual bool PxVehicleDrive::isKindOf ( const char *  superClass) const
inlineprotectedvirtual

Returns whether a given type name matches with the type of this instance.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDriveTank, PxVehicleDrive4W, and PxVehicleDriveNW.

References PxBase::isKindOf().

bool PxVehicleDrive::isValid ( ) const
protected

Test that all instanced dynamics data and configuration data have legal values.

static PxU8* PxVehicleDrive::patchupPointers ( PxVehicleDrive vehDrive,
PxU8 ptr,
const PxU32  nbWheels4,
const PxU32  nbWheels 
)
staticprotected
void PxVehicleDrive::setToRestState ( )
protected

Set vehicle to rest.

void PxVehicleDrive::setup ( PxPhysics physics,
PxRigidDynamic vehActor,
const PxVehicleWheelsSimData wheelsData,
const PxU32  nbDrivenWheels,
const PxU32  nbNonDrivenWheels 
)
protected

Friends And Related Function Documentation

friend class PxVehicleUpdate
friend

Member Data Documentation

PxVehicleDriveDynData PxVehicleDrive::mDriveDynData

Dynamics data of vehicle instance.

See Also
setup

The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com